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.

HN Please Add Target Property to Links

3 pointsby pszczurkoover 10 years ago
Majority of sites that have links open them up in a new tab upon clicking. This behaviour would be great on HN (at least the main page) so that way I can click on a link, read it, and close it. This way I don&#x27;t navigate away from HN, and don&#x27;t have to worry about opening a link in a new tab myself.<p>Here&#x27;s the quick obvious template with addition of the target property: &lt;a href=&quot;http:&#x2F;&#x2F;www.link.com&quot; target=&quot;_blank&quot;&gt; My amazing link title here &lt;&#x2F;a&gt;

6 comments

ggchappellover 10 years ago
I don&#x27;t agree.<p>I think it&#x27;s typical for a middle-button click and&#x2F;or control-left-click to open a link in a new tab. That&#x27;s easy to do, and so we get to choose new tab or same tab ourselves, rather than having the website make the decision for us.<p>My habit with HN is to open a link by middle-clicking both the post link and the comments link. So I get both the post and its comments in side-by-side tabs. It&#x27;s convenient for me, but people who just want to use a single tab can still do so.
评论 #8403969 未加载
Spoomover 10 years ago
Agree with others stating that links should be left alone. Just middle or ctrl-click to open in a new tab if you want to do that. Adding the target attribute would remove the option to open in the same tab, which I often want to do.
MalcolmDiggsover 10 years ago
Looks like somebody built a chrome extension for this <i>EXACT</i> purpose (literally with HN in mind)<p><a href="https://chrome.google.com/webstore/detail/open-external-links-in-ne/pmgjfdndcgbblimbigekghdmgkjbffba?hl=en-US" rel="nofollow">https:&#x2F;&#x2F;chrome.google.com&#x2F;webstore&#x2F;detail&#x2F;open-external-link...</a>
steanneover 10 years ago
if i want things to open in new tabs, i can do that myself. that&#x27;s not a decision the web designer should be making for me.
J_Darnleyover 10 years ago
That doesn&#x27;t do a new tab it does a new window. It is always the feature I have to work around whenever I have to install a new browser.
brudgersover 10 years ago
Feature requests should be made using the link at the bottom of this page [and many other HN pages].<p>..