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.

Ask HN: target="_blank" thoughts?

10 pointsby holdupadamalmost 14 years ago
I'm marking up a page right now, have a list of Twitter users to link to and am debating the use of target="_blank" without an explicit "new tab/window" icon.<p>I personally have no use for this anymore. If I am browsing a webpage and I want the link to open in a new tab I will do it myself, otherwise I expect it to open in the same tab.<p>How do others feel about this?

7 comments

nostrademonsalmost 14 years ago
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.
评论 #2574874 未加载
评论 #2574729 未加载
评论 #2574733 未加载
评论 #2575622 未加载
plasmaalmost 14 years ago
I think using it is still appropriate when you know the user isn't intending to really leave the page they're on.<p>For example, clicking on a help link (while filling out a screen) or anything else that would disrupt what the user's doing unintentionally.
评论 #2574853 未加载
评论 #2575427 未加载
评论 #2575028 未加载
JohanEalmost 14 years ago
If you're using target="_blank", you should let the user know that a new tab/window will open. Probably use a symbol like this: <a href="http://code.google.com/apis/checkout/developer/files/OpenInNewWindow14x14.png" rel="nofollow">http://code.google.com/apis/checkout/developer/files/OpenInN...</a>
proexploitalmost 14 years ago
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.<p>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.<p>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.
评论 #2597697 未加载
pkambalmost 14 years ago
There's a long-standing Chrome bug where middle-clicking target="NAMED" links opens them in a new tab in the <i>foreground</i>, not the background as is expected. So annoying.<p><a href="http://code.google.com/p/chromium/issues/detail?id=62319" rel="nofollow">http://code.google.com/p/chromium/issues/detail?id=62319</a>
rocktronicaalmost 14 years ago
I understand the sentiment and don't use it on personal sites. For apps, though, I don't quite have the confidence that my users will know to open external links in new tabs.
cstrousealmost 14 years ago
It's fine I guess for external links but it really bugs me when people use it for links to other pages on their own site.