Live data from Hacker News

Ask HN: Why doesn't Hacker News open links in a new tab?

news.ycombinator.com

21–30 of 38 posts

Re: Ask HN: Why doesn't Hacker News open links in a new tab?

#21

But it does open links in a new tab, most of the time - because I choose to use my browser's "open in new tab" feature when I click on its links. I appreciate the fact that Hacker News lets me do what I want, instead of trying to override my preferences with some excessively clever bit of scripting.

target="_blank" isn't an excessively clever bit of scripting, it's an attribute of the anchor tag that's been around since dinosaurs roamed the earth.

Re: Ask HN: Why doesn't Hacker News open links in a new tab?

#24
post #2

target="_blank" is an anti-user design choice. If a link does not set target="_blank", you can always choose how it will be opened: in this tab, or in a new one, with a left or middle click. If it has target="_blank", it'll always open in a new tab, even if you don't want it to, and there's no visual indicator that this parameter has been set. I never set target="_blank" as a general rule for this reason.

There are times where it's a good thing. The big one for me is if it's a link to documentation/help while in the middle of something where you don't want to lose state such as filling out a form. I always middle-click those out of caution, but they almost always do the smart thing. (Though I hate when the anchor's href is "javascript:void(0)" and middle clicking doesn't work. In that case it's usually set that way because it displays a modal or other form of help overlay, but there's no guarantee so I just have to pray)

Re: Ask HN: Why doesn't Hacker News open links in a new tab?

#25
post #8

Earlier quoted context omitted.

As well as on GNU/Linux.

Mac OS too, if your mouse has a middle button - I use it all the time.

And there's utilities that can give the trackpad a three finger click to act as the middle mouse button. I'm not sure I'd be able to tolerate a MacBook without that.

Re: Ask HN: Why doesn't Hacker News open links in a new tab?

#27
post #21

But it does open links in a new tab, most of the time - because I choose to use my browser's "open in new tab" feature when I click on its links. I appreciate the fact that Hacker News lets me do what I want, instead of trying to override my preferences with some excessively clever bit of scripting.

target="_blank" isn't an excessively clever bit of scripting, it's an attribute of the anchor tag that's been around since dinosaurs roamed the earth.

"Excessively clever" is when you know the solution to a problem and apply it, without checking whether it was a problem in the first place.

Re: Ask HN: Why doesn't Hacker News open links in a new tab?

#30
post #2

target="_blank" is an anti-user design choice. If a link does not set target="_blank", you can always choose how it will be opened: in this tab, or in a new one, with a left or middle click. If it has target="_blank", it'll always open in a new tab, even if you don't want it to, and there's no visual indicator that this parameter has been set. I never set target="_blank" as a general rule for this reason.

I agree. However, at least on Firefox I can set the "browser.link.open_newwindow" option to disable this feature (and to otherwise configure it); I set it to 1 to tell it to ignore target="_blank".
Post reply on HN