Hacker News new | ask | show | jobs
by 619deathstar 3411 days ago
Opening links in a new tab with the target="_blank" attribute in your <a> html tag? Keeps the user on the main site in a different tab, and when they close out the new tabs page, they are kicked back into the original site.
1 comments

Warning: Always add rel="noopener noreferrer" if you use target="_blank". Otherwise the target site could redirect the main site to a phishing page or worse.