A major concern of many website owners is the fact that when visitors click a link they are taken away from the site which stops further browsing.
So how do you stop visitors leaving your site when they click a link? How do you make a link open in a new window or tab?
Thankfully, this is a relatively simple issue to resolve. If you have access to edit the html of your site then it is merely a matter of adding a target=”blank” to the html code for the link as in the example below.
Example 1: Making a link attached to a graphic or banner open in a new tab or window
<a href=”http://www.mysite.com” target=”blank”> <img src=”http://www.mysite.com/images/banner.jpg”> </a>
This will create something like this
![]() |
Example 1: Making a text link open in a new tab or window
<a href=”http://www.mysite.com” target=”blank”> my link here </a>
To create a link like this:
Whether these links open in a new window or a new browser tab depends on the visitors browser settings. But whichever it does, your site will still be open in their browser for them to return to.
It should be noted that Google does not permit the code in adsense units to be altered. Therefore it is unavoidable that people leave your site if they click a Google link. If you alter this code Google can disallow ALL clicks and potentially close your adsense account and ban you from ever signing up again.
Any other link may be opened in a separate window or tab by following the instructions above.
Popularity: 4% [?]
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.


September 5th, 2009 - 11:05 am
Excellent site, keep up the good work
September 18th, 2009 - 12:23 am
Blogroll links aint that great :P but i am not the admin
September 18th, 2009 - 3:39 am
LOL, u can talk! I may not have added many links to my blogroll but your blog hasn’t even got any content yet!
September 29th, 2009 - 11:49 pm
Hey, great blog…but I don’t understand how to add your site in my rss reader. Can you Help me, please :)