I am modifying my code for my website. I want all the links to open in a new window. However, instead of adding:
target="_blank"
for all the links, I was wondering if I could somehow control all link tags from one location.
You can try adding a base tag to the head of the html
<base target="_blank">
http://jsbin.com/ezeyij/1/edit
Note: This also affects the target of forms as well.
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