back to blog
developmentJune 13, 2021 · 1 min read

target=blank (CSS-Tricks)

A CSS-Tricks tip on the difference between target="blank" and target="_blank" — and how the version without the underscore lets you reuse the same tab across multiple link clicks.

Dan Holloran
Dan Holloran
Senior Frontend & Fullstack Developer
target=blank (CSS-Tricks) image

I saw this post (Originally posted on CSS-Tricks) this week about using target="blank" instead of target="_blank" earlier this week. I was amazed that I did not learn this sooner that blank without the _ allows you to re-use the same tab. I know of at least one time where I did this functionality with Javascript window.open and then replacing the location when it updates (I think it's been a while).

It's crazy how much there is to learn even after almost a decade. I am still finding new solutions to old problems.