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="http://ronangelo.com/"> This is a link </a>
    
  • This link opens on a new window or tab.
    <a href="http://ronangelo.com/" target="_blank"> This is a link </a>
    
Share This Post :

Leave a Reply

Anything that resembles spam is deleted. Keyword names are also changed or deleted.

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

ronangelo © 2012 - 2016 Frontier Theme
css.php