Open HTML Links on New Window or Tab

This is pretty simple stuff but I see it getting asked a lot on forums. How do you make a link open on a new window? Just add a target attribute to the link and set it to “_blank”.

The html tag <a> actually stands for “Anchor”.

  • Standard link, opens (reloads) on same page.
    <a href=""> This is a link </a>
  • This link opens on a new window or tab.
    <a href="" target="_blank"> This is a link </a>

Share This Post

Leave a Reply

Please write your comments in english. I delete anything that even remotely resembles spam.

Note: When posting code, enclose it in pre and code tags.
e.g. Add code here