Live data from Hacker News

Ask HN: target="_blank" thoughts?

news.ycombinator.com

11–20 of 21 posts

Re: Ask HN: target="_blank" thoughts?

#11
post #6

I think using it is still appropriate when you know the user isn't intending to really leave the page they're on. For example, clicking on a help link (while filling out a screen) or anything else that would disrupt what the user's doing unintentionally.

Agreed - fine for contextual information, help, glossaries, but not to be used indiscriminately.

Re: Ask HN: target="_blank" thoughts?

#12
post #8

I hate it when websites do this, because it overrides the expected behavior of the browser with the author's desires. People who want each link to open in a new tab/window know about Ctrl-Click or Right-Click+Open-in-new-window. They can do it themselves if they desire. For everyone else, this is rude, annoying, and breaks the back button.

Has Google ever done a study to see how many people know about opening a link in a new window/tab? They must have, right? Based on my experience it's very much less than half of normal people know how to do this.

I googled this for a bit, and while Google did not do a study on opening links in new tabs/windows, it seems like the University of Washington and Microsoft did: http://jeffhuang.com/Final_ParallelBrowsing_HT10.pdf

Just skimmed the abstract, which says "We find that users switch tabs at least 57.4% of the time." but looking at Table 1, it seems like 64% of people do not open search results in new tabs/windows at all, so your initial guess is about correct.

Re: Ask HN: target="_blank" thoughts?

#14
post #6

I think using it is still appropriate when you know the user isn't intending to really leave the page they're on. For example, clicking on a help link (while filling out a screen) or anything else that would disrupt what the user's doing unintentionally.

My expectation when browsing the web is that web apps open external links in new tabs, while mere web pages open links in the same tab. Unhelpfully, the line between "app" and "page" is fuzzy.

Re: Ask HN: target="_blank" thoughts?

#15

I hate it when websites do this, because it overrides the expected behavior of the browser with the author's desires. People who want each link to open in a new tab/window know about Ctrl-Click or Right-Click+Open-in-new-window. They can do it themselves if they desire. For everyone else, this is rude, annoying, and breaks the back button.

> People who want each link to open in a new tab/window know about Ctrl-Click or Right-Click+Open-in-new-window.

Source? That's almost entirely untrue in my own experience (my audiences are quite large, quite varied, and not particularly ludite).

Re: Ask HN: target="_blank" thoughts?

#16
Use it only when you need a new tab/window to open and nowhere else. You don't want to try and make a user's life easier by guessing if they'd open a new tab, because some won't want to.

The only place I've used it in months is on Facebook iFrame applications where otherwise avoiding it would cause a larger page to load in a smaller area and get cut off.

As another poster mentioned, it would be good to mark as opening in a new window with an icon or text. When it's a small bit of information (like a couple paragraphs of help text), I always appreciate a modal window or tooltip first.

Re: Ask HN: target="_blank" thoughts?

#18
post #8

I hate it when websites do this, because it overrides the expected behavior of the browser with the author's desires. People who want each link to open in a new tab/window know about Ctrl-Click or Right-Click+Open-in-new-window. They can do it themselves if they desire. For everyone else, this is rude, annoying, and breaks the back button.

Has Google ever done a study to see how many people know about opening a link in a new window/tab? They must have, right? Based on my experience it's very much less than half of normal people know how to do this.

I'm not so sure they have. Their 'Block all results from domain' feature doesn't register middle clicks. I'd imagine if they had been recording when people open new tabs, they also would show the Block all results link when you middle click.

It's actually quite annoying that middle click doesn't bring up the link.

Re: Ask HN: target="_blank" thoughts?

#19
post #8

I hate it when websites do this, because it overrides the expected behavior of the browser with the author's desires. People who want each link to open in a new tab/window know about Ctrl-Click or Right-Click+Open-in-new-window. They can do it themselves if they desire. For everyone else, this is rude, annoying, and breaks the back button.

Has Google ever done a study to see how many people know about opening a link in a new window/tab? They must have, right? Based on my experience it's very much less than half of normal people know how to do this.

Yes. The vast majority of people do not know how to open a link in different ways. They just click the link. Unless you are making something very techy like github, design for the user that simply clicks on links. Of course, most users expect normal links to open in the current page, so don't just throw target=_blank everywhere.
Post reply on HN