Since I approached the web programming, to open a link in a new window I always used
target="blank"
but most of the time, here and in the rest of the web I have ever seen use:
target="_blank"
Both forms work (of course), but I do not know the difference between the two versions and they do not know what the correct way (and why)....
blank targets an existing frame or window called "blank". A new window is created only if "blank" doesn't already exist. _blank is a reserved name which targets a new, unnamed window.
The most common reason to use `target=”_blank” is so that offsite links open in a separate tab. This allows a user to click on a reference and come back to it later without leaving the current page. It keeps visitors on your site longer and improves most of your metrics: bounce rate, conversion, pages visited.
It looks like target="_blank" is still alright. It is listed as a browsing context keyword in the latest HTML5 draft.
A target attribute with the value of “_blank” opens the linked document in a new window or tab. A target attribute with the value of “_self” opens the linked document in the same frame as it was clicked (this is the default and usually does not need to be specified).
blank
targets an existing frame or window called "blank". A new window is created only if "blank" doesn't already exist.
_blank
is a reserved name which targets a new, unnamed window.
In short, use target="_blank"
it always open a new window but use target="blank"
it will open a new window at the first time and this window will be reused after the first.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With