News for hackers. Stuff that matters.

HN Please Add Target Property to Links

Majority of sites that have links open them up in a new tab upon clicking. This behaviour would be great on HN (at least the main page) so that way I can click on a link, read it, and close it. This way I don't navigate away from HN, and don't have to worry about opening a link in a new tab myself.

Here's the quick obvious template with addition of the target property: <a href="http://www.link.com" target="_blank"> My amazing link title here </a>

( 8 comments | 3 points | on HN )
Re:HN Please Add Target Property to Links by ggchappell on Thursday October 02, 2014 @09:03PM (#8403960)
I don't agree.

I think it's typical for a middle-button click and/or control-left-click to open a link in a new tab. That's easy to do, and so we get to choose new tab or same tab ourselves, rather than having the website make the decision for us.

My habit with HN is to open a link by middle-clicking both the post link and the comments link. So I get both the post and its comments in side-by-side tabs. It's convenient for me, but people who just want to use a single tab can still do so.

Re:HN Please Add Target Property to Links by pszczurko on Thursday October 02, 2014 @09:07PM (#8403969)
Using the middle-button click and/or control-left click open still works the same with the 'target="_blank"' specified so this wouldn't affect the way you do things anyway
Re:HN Please Add Target Property to Links by ggchappell on Thursday October 02, 2014 @09:36PM (#8404053)
Exactly. Doing "target='_blank'" would not help me. But it would be detrimental to others.

In a site full of ordinary users, maybe "target='_blank'" is called for. But HN is aimed at the kind of people who are knowledgeable about their computers.

Re:HN Please Add Target Property to Links by Spoom on Friday October 03, 2014 @09:20AM (#8405375)
Agree with others stating that links should be left alone. Just middle or ctrl-click to open in a new tab if you want to do that. Adding the target attribute would remove the option to open in the same tab, which I often want to do.
Re:HN Please Add Target Property to Links by MalcolmDiggs on Friday October 03, 2014 @07:16PM (#8408150)
Looks like somebody built a chrome extension for this EXACT purpose (literally with HN in mind)

https://chrome.google.com/webstore/detail/open-external-link...

Re:HN Please Add Target Property to Links by steanne on Thursday October 02, 2014 @09:43PM (#8404078)
if i want things to open in new tabs, i can do that myself. that's not a decision the web designer should be making for me.
Re:HN Please Add Target Property to Links by J_Darnley on Friday October 03, 2014 @11:15AM (#8405871)
That doesn't do a new tab it does a new window. It is always the feature I have to work around whenever I have to install a new browser.
Re:HN Please Add Target Property to Links by brudgers on Friday October 03, 2014 @07:17AM (#8405027)
Feature requests should be made using the link at the bottom of this page [and many other HN pages].

..