TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Forcing links to open in new windows: an argument that should have ended

68 pointsby SmileyKeithover 11 years ago

28 comments

danielpalover 11 years ago
I completely disagree. In fact I find it worse when a link opens in the same tab and then I have to navigate back and find the place that I was at .vs. having to close a new tab I did not want.<p>&quot;And I think over a decade of user confusion and frustration resulting from target=&quot;_blank&quot; backs that up.&quot;<p>Do you have any links to to back this claim?
评论 #7040661 未加载
评论 #7040417 未加载
评论 #7040421 未加载
评论 #7040483 未加载
评论 #7040477 未加载
评论 #7040442 未加载
评论 #7040675 未加载
评论 #7040538 未加载
评论 #7043634 未加载
评论 #7040503 未加载
评论 #7040756 未加载
评论 #7040679 未加载
dictumover 11 years ago
Tapping and holding for 2 seconds and then choosing &quot;Open in a new tab&quot; every time you want to open a link in a new tab in iOS gets tiring fast.<p>I wish Apple would introduce a better UI for this.
评论 #7040469 未加载
评论 #7040748 未加载
评论 #7040945 未加载
评论 #7040330 未加载
评论 #7040365 未加载
评论 #7040350 未加载
评论 #7040374 未加载
tg3over 11 years ago
I&#x27;m glad he clarified that. For non tech-savvy users who are using an application, I think `target=&quot;_blank&quot;` is a really helpful way to avoid &quot;I&#x27;ve lost my work!&quot; support emails. Auto-saving their work is helpful too.<p>I&#x27;ve stood over my mother&#x27;s shoulder too many times when she closes a tab and says &quot;where did that last window go?&quot; to agree with the blanket statement of &quot;target blank is Bad&quot;.
评论 #7040401 未加载
WiseWeaselover 11 years ago
I wish HN used target=&quot;_blank&quot; for story links. I&#x27;m often reloading the HN front page, wasting everyone&#x27;s network resources because I forgot to go back and closed the tab instead. Opening offsite links in a new tab should be the norm for most sites, with few exceptions. Bloggers probably shouldn&#x27;t open links in new tabs, because I&#x27;m rarely following multiple links from a single blog, but directories and news listing sites absolutely should. In addition to sites where following an offsite link might interrupt my session in an annoying manner (his first case), if there&#x27;s a high likelihood I&#x27;ll want to navigate to multiple links from a single page, then they should open in a new tab.<p>Temporary digressions like contextual help text should probably get loaded into a hidden div and use JS to display&#x2F;hide rather than open in a new tab.
Aardwolfover 11 years ago
IMHO, there should always have existed only one single type of link: a link.<p>The user should be able to choose to open it in this window, a new tab, or a new window.<p>Browser allow you to open a normal link in new tab or new window, but unfortunately I don&#x27;t know any web browser that allows the user to force opening a link in the current tab :(
评论 #7040372 未加载
评论 #7040502 未加载
natural219over 11 years ago
I&#x27;m confused. He says:<p><i>Forcing links to open in new windows has two main purposes:</i><p><i>1) To avoid disturbing an important session in progress for a temporary digression, such as FAQ&#x2F;documentation links in the sidebar when you’re doing online banking.</i><p>And then:<p><i>I believe the former is justifiable</i><p>He gives a good reason for using target=&quot;_blank&quot;, and then...okay, what? Sounds like a good reason.<p>Even then, his second reason to <i>not</i> use target=_blank clearly sounds like a normative difference than a technical difference. He doesn&#x27;t &quot;like&quot; the idea of keeping people on your site...so what? Don&#x27;t use it, then. But you&#x27;ve clearly identified a positive ROI technique for keeping people on your site.<p>This post really confuses me.
评论 #7040517 未加载
评论 #7040557 未加载
评论 #7040519 未加载
barrkelover 11 years ago
At this point, I middle-click pretty much all links, and then decide to close the window or not depending on whether I want to continue the session or not.<p>Since I use tree-style tabs, nesting is effectively my navigation stack - except that it&#x27;s a navigation tree, which also avoids the problem whereby you lose your &quot;forward&quot; stack if you go back and choose a different path.<p>And for tabs that I want to return to after closing, I use undo tab close - with TabMixPlus, I have the last 10 closed tabs available for reopening.<p>The combination of TabMixPlus and (especially) TreeStyleTabs are the reason I&#x27;ve never been able to take Chrome seriously.
评论 #7040833 未加载
throwaway420over 11 years ago
&gt; Most people know how to open your article’s outbound links in new tabs or windows, especially readers of a tech site.<p>Readers of a technical site? Maybe.<p>Average people? Not a chance.
评论 #7040718 未加载
subpixelover 11 years ago
Far worse, in my opinion, are sites that disable command&#x2F;control-click (open link in new tab), either on purpose or b&#x2F;c of lousy javascript.<p>I probably command-click 99% of links. How often do I, as a user, want to leave the current page and enter an entirely new context, within the same browser tab? Almost never.
评论 #7040490 未加载
pyduanover 11 years ago
I used to agree with the author, but these days I find myself actually preferring having a link opening in a new tab, so I&#x27;m not actually that irritated when a page uses target=&quot;_blank&quot; if it&#x27;s somewhat justified (ie. if there&#x27;s a reasonable expectation that I&#x27;ll click the link as a temporary digression, before going back to the original page).<p>The problem is that sadly, closing a tab is often easier in practice than using the &quot;back&quot; functionality:<p>- many websites are poorly coded and break the &quot;back&quot; functionality, making it (sadly) unreliable. On pages that load content dynamically, results are not always predictable either<p>- my left hand is already positioned in such a way that hitting cmd&#x2F;ctrl + w is trivial, whereas going back requires reaching all the way to the backspace button&#x2F;the mouse&#x2F;doing a multi-finger gesture on the trackpad<p>- if you had to submit content to get to the current page, usually going back will trigger a &quot;confirm form resubmission&quot; warning<p>- on mobile devices, the &quot;back&quot; functionality is not very prominently displayed. On Chrome, you have to click the &quot;more&quot; icon to access it<p>In addition, manually opening in a new tab (which requires right-clicking, middle-clicking, or ctrl&#x2F;cmd + click) is not always as trivial as people imply:<p>- people who are using a trackpad do not have a middle button<p>- right-clicking is has not been part of Apple&#x27;s design for a long time. You can perform them using cmd + click or using two fingers on the trackpad (I believe it is disabled by default), but it&#x27;s not as convenient<p>- On a MacBook, the modifier keys (fn&#x2F;control&#x2F;option&#x2F;command) are all placed next to each other and it&#x27;s not always obvious which one does what. It&#x27;s easy to get confused or to accidentally hit the wrong one. I&#x27;ve personally done option + click by mistake countless times, which opens a prompt to save the link, and it&#x27;s always pretty frustrating<p>- the right-click equivalent on touch screens (long press) is a bit clunky<p>And this is coming from a tech-savvy user who actually knows about these options -- you&#x27;d be surprised at how many people don&#x27;t. Of course, having the ability to make the decision is important for power users, but I can&#x27;t help but wonder if for less sophisticated users the practice is not so bad after all. The usability studies I could find are pretty dated and I would not be surprised that usage patterns have changed.
评论 #7040729 未加载
dansoover 11 years ago
This reminds me of an Etsy engineering talk about A&#x2F;B testing:<p><a href="http://mcfunley.com/design-for-continuous-experimentation" rel="nofollow">http:&#x2F;&#x2F;mcfunley.com&#x2F;design-for-continuous-experimentation</a><p>Etsy employees were so sure that customers would <i>love</i> having blank&#x2F;multi-windows, because if you shop on Etsy a lot, how else would you keep track of interesting things while moving down the list?<p>According to slide 20, <i>70 percent</i> more people in the testing group gave up and left the site after getting a new tab.
snowwrestlerover 11 years ago
Marco is right that the argument should have ended long ago. But he&#x27;s 180 degress wrong about how it should have ended, at least based on the usability testing I have done or overseen.<p>A link in the middle of a sentence interrupts <i>any</i> mental session in progress. The 7th word in his post is a link...does he really think that anyone <i>intends</i> to click that click and never return to his site? To at least finish the sentence?<p>I guarantee that if he sat and watched 100 of his readers click that link, all 100 would use a contextual menu (e.g. right click) or chord (Ctrl-click) to open that link in a new window.<p>I could understand the argument against target=_blank back in the good ol&#x27; days of IE6 on XP, when browsers were not tabbed and OS&#x27;s were not good at managing tons of windows. Back then creating new windows all over the place was annoying.<p>Those days are gone. With tabs and window management UI (like Expose), it is now no trouble at all for anyone to manage dozens of open web sessions at once. Adding one more is far more lightweight than whisking your readers away suddenly in the middle of a sentence.
elwellover 11 years ago
I Ctrl&#x2F;Cmd + Click most HN posts so I can start reading the comments while the link is loading.
评论 #7040458 未加载
d0mover 11 years ago
I use the rule &quot;If it links OUTSIDE of my site (I.e. different domain), I use target blank&quot;. If it&#x27;s some kind of activity and navigating away would interrupt it, I&#x27;d rather use a modal..
10charover 11 years ago
Another poor example that comes to mind is the search results on Quora, which open with target=_blank even though they link to <i>the same site</i>
randallsquaredover 11 years ago
The problem is that due to javascript, bizarre behavior from browsers, and now the new HTML5 back functionality, a lot of us have been trained to avoid the back button for fear of what might happen; I religiously open in a new tab anyway unless I&#x27;m quite sure I&#x27;m completely done with a page, so the default of &quot;open in a new tab&quot; is totally fine with me.
raisinbreadover 11 years ago
For folks on the web every day this makes sense.<p>I&#x27;m not sure my Mom, when browsing, knows how to decide when opening in a new window is important, much less <i>how</i> to do it.<p>It&#x27;s also kinda nice when you&#x27;re using an iframe, and you don&#x27;t want the link to be followed inside a small subsection of the viewport.<p>I totally agree that it gets abused, but it does (at least seem to) have some valid uses.
SethMurphyover 11 years ago
I used to work on a site that served the medical profession (read large set of returning users with varied technical skill, but all fairly intelligent) and we had an icon next to non-html resources and links that were external. External links used target=&#x27;_blank&#x27; which the site visitors surely learned quickly without having to Google it. I found this to be a fair compromise to keep users engaged on the site and be polite with your intentions. Most links were provided in the context and in support of the original page so keeping it open did not seem rude to me, but the proper UI.<p>NOTE: This was a not-for-profit, so ROI was not a factor in the decision, only usability with possibly a little liability protection thrown in as an added bonus.
arunitcover 11 years ago
No it makes a lot of sense in a number of situations today especially with ajax and dynamically updating web pages. I have a web application where users navigate to, lets say, invoices through a tree structure of Accounts -&gt; Packages -&gt; Invoices. Clicking on edit of the Invoice opens a new webpage. If they click the back button, users see the list of accounts all collapsed and will have to perform search, and navigate down again to the account. In this instance users have specifically asked me to open the edits in a new window.<p>In a few cases, I have edits open in the same tab as a popup, but in a number of instances that is not possible for pages with a lot of functionality&#x2F;fields.
acoleman616over 11 years ago
I think like assuming people know how to open links in new tabs on their own (i.e. right click, &quot;Open in New Tab&quot;) is completely misguided.
biscottiover 11 years ago
This functionality needs to be preserved so certain applications can follow efficient workflows.<p>An example of this can be found in a django admin site where a new modal is launched to enter a foreign key relationship, this would be unwieldy &amp; distracting if it were to open in a new tab, taking the user away from information that may help them in making a choice and disrupting their flow.
peterbeover 11 years ago
But I really really like that when I&#x27;m in a single-page web app like Gmail, all links are target=_blank.
jeffehobbsover 11 years ago
Disagree, with an if&#x2F;else: When the site is a set of links aggregated (Twitter, FB, Hacker News) I would prefer that the link open a new tab.<p>When it&#x27;s a blog or a news site or anything else, the link should just be a link.
threepipeproblmover 11 years ago
I agree that the Web is regressing on this as certain players have consolidated players and decided they can get away with it... I think all the Gawker blogs de-evolved some time ago.
tylermautheover 11 years ago
Here&#x27;s the more direct link: <a href="http://www.marco.org/2014/01/10/target-blank" rel="nofollow">http:&#x2F;&#x2F;www.marco.org&#x2F;2014&#x2F;01&#x2F;10&#x2F;target-blank</a>
jcomisover 11 years ago
I think this is more opinion than web standard.
评论 #7040721 未加载
cookingrobotover 11 years ago
There&#x27;s an easy UI fix for this. Clicking back should close the tab.<p>Anyone want to build this Chrome add-on for me?
EmmEffover 11 years ago
I didn&#x27;t read the article. I am getting tired of Marco.