Testing Open all links in New tab/window script

Friday, November 19, 2010

Hi,
just checking out the following feature "open all links in new tabs"

Problem

http://www.blogspotquiz.blogspot.com/ just copying the website name does not opens the website you have to give hyper link to it. If you give hyper link from your blog/website then your visitor navigates from your blog/website to the link. To keep your page opened in browser then you have to add target='_blank' />" for every one of your hyper link. Following is the simple 2 minutes solution to make your visitor open all your links in individual browser links.


http://www.blogspotquiz.blogspot.com/
the code here is
<a href="http://www.blogspotquiz.blogspot.com/">
http://www.blogspotquiz.blogspot.com/</a>


http://www.blogspotquiz.blogspot.com/ the code here is
<a href="http://www.blogspotquiz.blogspot.com/"
target="_blank">http://www.blogspotquiz.blogspot.com/</a>


There are so many java scripts those make you confusing....a simple and workable solution to achieve the goal of opening each link in new tab is

Solution

Step1: Find
<head>
add the following code below it
<base target='_blank' />

after adding the this will appear like this
<head>
<base target='_blank' />

Step2:
save it
now on words all your href links open in new tabs.

1 comments:

Natalie said...

Your answer is so simple, and it works!

Thank you!!! (:

Post a Comment

Track

Search My Blog

Loading