February 25, 2019

How To Open Links in New Window or New Tab

How To Open Links in New Window or New Tab



Any webmaster don't like visitors to leave their site always.So,if we use links to open in new window,our problem will be solved.
We used targe="blank" to open the link in new page.
We can also use target="new" instead of target="_blank".Both are same.
For Text Links
____________________________________
<a href="
website URL" target="_blank">website name</a>

____________________________________
See the example below.
<a href="http://howtoblogacademy.blogspot.comtarget="_blank">Blogger Templates</a>
It see like this.
For Image Links
________________________________________
<a href="website URLtarget="_blank" title="TITLE"><img src="Image URL" border="0" width="80" height="15" alt="Description"></a>

________________________________________
See the example below.
<a href="http://howtoblogacademy.blogspot.comtarget="_blank" title="Blogger Templates"><img src="http://i626.photobucket.com/albums/tt346/wam8387/sun.jpg" border="0" width="80" height="15" alt="2009 Blogger Templates"></a>
It see like this.
2009 Blogger Templates

Note:If you want You can change width,height,border value,etc... of above codes.

0 Comments:

Post a Comment