Skip to content

target="_blank"

Every time a client asks me to add a [target="_blank"] attribute to a link somewhere on a website, I die a little inside.

When a user visits a webpage, they're in control. If a user wants to open a link, their browser gives them the ability to choose to open the page in a new tab or window. For most modern browsers, middle clicking with a mouse opens a link in a new tab instead of in the same window.

When I left-click on a link, I expect it to change the page that I'm currently on. If it opens the link in a new tab, my immediate reaction is to close the old tab. Using dark patterns like [target="_blank"] to try to keep users on a website is a good way to irritate your users.