Thursday , March 30 2017
Home / web development / Code html open link in new tab or window

Code html open link in new tab or window

Code html open link in new tab or window. Hi friends welcome to TricksYear.com today i am going to give you a little tip by using this tip you will be able to  make link html open link in new tab or News Window. This will Help us to more page views and its will help to increase Adsense Earning. I sure after this tip you will avle to make link open in new tab.

html open link in new tab
Code html open link in new tab or window 
 <a href="92tricks.tk">92 tricks</a>

is a simple link html code but when we click on this link browser redricet us on link in current tab.

 

How to html open link in new tab?

To open link in new tab just add target=”_blank

So after editing your html code look like this

<a href="92tricks.tk" target="_blank">92 tricks</a>

How to html open link in new tab?

To open link in new window not new tab you can use bellow html


<a href="http://92tricks.tk"  onclick="window.open('http://92tricks.tk', 'newwindow', 'width=500, height=300'); return false;"> 92tricks</a>

replace TricksYear.com to your link you can also change window width and height in above code i choose window height 300 and width 500 you can replace height and width. Hope You understand this short tip. Now you able to make html open link in new tab.  If you face any issue comment below or want ask any thing about Blogger or seo comment here we will reply you. Thanks

Check Also

custom robots txt

How to set custom robots txt in bloggeer

How to set custom robots txt in bloggeer. Hello friends today you are going to …

Leave a Reply

Your email address will not be published. Required fields are marked *