How To Open Links in New Window or New Tab

Posted by Lasantha Bandara on April 9th, 2009 File Under : html9 Comments

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="" 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="" target="_blank" title="Blogger Templates"><img src="" 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.

File Under : html

9 Responses to “How To Open Links in New Window or New Tab”

  1. Pam says:

    In Blogger, how do you make this the default, rather than having to edit the html every time you insert an image?

  2. HaQeeM says:

    tq this information very useful to me...thanks for the share...:)

  3. Bazoooka says:

    Hey Man,
    Thanks for the hack, but my blog template has a (Full Story) but i want it to open in a new tab and not in same page.
    So what should i do?
    Your reply will be highly appreciated.

  4. Anonymous says:

    I can't find this <a href=

  5. BD-CLICKS says:

    Many Many Thanks for this tips

  6. Liz says:

    Thanks, Very useful, nice of you to share

  7. dollarking says:

    thanks for the info, godbless you !

  8. Elvyra says:

    Tahnks for the post! It is so useful 😉

  9. Priyanka Sharma says:

    Many Many thanks.I want to open only few links in new tab and there was no option to implement this in text gadget.But your post solved my problem.keep it up your good work.I am fan of your blog is related to how to earn money online in india. Thank you dude !!

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.