Is there a way to get anchor tags to open in a new window instead of the current one?
<a href="my_link">Link</a>
Set the target
attribute to _blank
.
You have no control over what sort of new "window" the browser will open it in. It might be an actual window, it might be a tab, it might be overridden and forced to the same window.
It is, however, a bad idea, so don't do it, really, please don't.
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