Live data from Hacker News

Ask HN: Why doesn't HN open news to a new window?

news.ycombinator.com

1–10 of 12 posts

Re: Ask HN: Why doesn't HN open news to a new window?

#4
> Why doesn't HN open news to a new window?

Because the links don't have '' in them.

> Was that a design choice?

That's the default for links. You have to explicitly add the target attribute to tell the browser to open a new tab or window. Someone decided on this behavior (the default behavior), so I guess you can call it a "design choice."

> Why would they choose that?

Because browsers let you open links in new tabs/windows if you want (right click, middle click, ctrl-click), but they don't let you prevent the new tab/window if the element has the "target" attribute. In lieu of compelling reasons to the contrary, it's best to let users control their browser.

Maybe the HN programmers also wanted to cut down on the "I have too many tabs open, I need some way to manage them" posts by not contributing to that problem.

Re: Ask HN: Why doesn't HN open news to a new window?

#5
post #4

> Why doesn't HN open news to a new window? Because the links don't have ' ' in them. > Was that a design choice? That's the default for links. You have to explicitly add the target attribute to tell the browser to open a new tab or window. Someone decided on this behavior (the default behavior), so I guess you can call it a "design choice." > Why would they choose that? Because browsers let you open links in new tab…

> they don't let you prevent the new tab/window if the element has the "target" attribute.

Don't browsers have an “open in current tab” option?

Re: Ask HN: Why doesn't HN open news to a new window?

#9
post #5
post #4

> Why doesn't HN open news to a new window? Because the links don't have ' ' in them. > Was that a design choice? That's the default for links. You have to explicitly add the target attribute to tell the browser to open a new tab or window. Someone decided on this behavior (the default behavior), so I guess you can call it a "design choice." > Why would they choose that? Because browsers let you open links in new tab…

> they don't let you prevent the new tab/window if the element has the "target" attribute. Don't browsers have an “open in current tab” option?

No.

Re: Ask HN: Why doesn't HN open news to a new window?

#10
I think that question is more complicated to reply than it looks like.

From the point of view of HN, it should be better to open in new window. That avoids users going out of your page.

However, as a blogger I have discovered the technical audience annoys enormously when links open in a new window. People get angry because you always have the shortcut to choose the new window if you indeed desire that.

So, to me, HN has decided to please its audience at the cost of loosing pageviews.

Post reply on HN