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://2009bloggertemplates.blogspot.com" target="_blank">Blogger Templates</a>

It see like this.

Blogger Templates


For Image Links
________________________________________
<a href="website URL" target="_blank" title="TITLE"><img src="Image URL" border="0" width="80" height="15" alt="Description"></a>

________________________________________

See the example below.

<a href="http://2009bloggertemplates.blogspot.com" target="_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

 

Support By Blogger