- What is Target _blank used for?
- How to use target _blank in Javascript?
- What can I use instead of target _blank?
What is Target _blank used for?
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).
How to use target _blank in Javascript?
The HTML target attribute defines where the linked document will open when the user clicked on the link. If target=”_blank” is set with anchor element, then the linked document will open in a new tab otherwise document is open in the same tab.
What can I use instead of target _blank?
Instead of target="_blank" , use rel="external" for external links. Using the rel-external attribute is better semantics than blank target. And if you need the external link to open in a new tab or window, you can add the following slice of jQuery: $('a[rel="external"]').