- Attribute of
- What does
- Specifies the default target value for all anchor links in the current document.
<head> . . . <base target="_blank">
Opening all Links in a New Tab
target attribute to
_blank in the
<base> element will cause all on-page links to open in a new tab. You should think carefully before implementing this, as your users may or may not appreciate this behavior.
If you only want outbound links (links to a different domain) to open in a new window, you should not use the