Open all links in a new tab
< Feedback on Open Links in New Tab
You could also just add a <base target="_blank"> tag in the page's section. It'd cover all links, as well as form submissions, yet it'd respect links that have their own target attribute set.
<base target="_blank">
target
document.head.append(Object.assign(document.createElement('base'), { target: '_blank' }));
Sign in to post a reply.
You could also just add a
<base target="_blank">
tag in the page's section.It'd cover all links, as well as form submissions, yet it'd respect links that have their own
target
attribute set.