Open link in a new browser Tab – Quick Tip

Hi, Today I’m going to show you a quick tip on how to Open link in a new browser Tab.

Using Html 5

This is a normal link :

<a href="https://www.cssparty.com/">;cssparty.com</a>

Now it should be opened in a new browser tab :

 <a href="https://www.cssparty.com/" target="_blank">;cssparty.com</a>; 

Using inline javascript

<a href="https://www.cssparty.com/" onclick="window.open(this.href); return false;" onkeypress="window.open(this.href); return false;">;cssparty.com</a>;

Thank you for reading this short article. Please feel free to say what do you want to see me write about in the next articles.

Leave a reply:

Your email address will not be published.

Site Footer