20 Ways To Make $5000+ From Home. Earn Now!

Table of Content

How To Open All Links In New Tab/Window In Blogger

Learn trick to install create add Automatically Make Open external and internal links in window tag in google chrome,Mozilla Firefox ,safari.Javscript for opening all hyperlinks in new tab in blogger blogspot template.
How To Open All Links In New Tab+Window In Blogger template
Hello Guys,today in this article we are going to explain How to Open All External+Internal Links in New Tab/Window in chrome, Mozilla Firefox, safari etc.This trick opening tab in new window will works perfectly with all the major browsers.Yesterday one of our reader asked to open all links in new tab whether it is external or internal.

Difference Between External And Internal Links:

External links are those links when you create any file or upload something over the internet or when you wants to share some hyperlinks but you don't want visitor leave your website for following that hyperlink those links are called External links.Internal Links are those links which is build internally in your blogger template,you can say you posts links,related articles links,navigation menus links these links are called Internal links.

How To Open All Website Links In New Tab

You might have seen  in so many websites or blogs when you click on any links suddenly new window will open and that links display over the new tab that works because of JavaScript.Opening all links in new tab will also increase the bounce rate of your website and also improve your ranking.Because whenever someone clicks on any link of your blogger template then always new tab will open result opening of multiple pages instead of one page so definitely it will improve your ranking too.We have Used two ways to open all links in tab one by using Script and second one is very simple just adding additional tag in blogspot template.So to grab this trick must follow the steps mentioned below.
Installation Steps: [Method :1 ]

Step 1. Log in to your Blogger account and Go to your Blogger Dashboard.
Step 2. Now Go to your Layout->Add a Gadget->Select->HTML/JAVASCRIPT box and copy the below code snippet and paste in the gadget.
<script type='text/javascript'>
var arr = document.getElementsByTagName("a"); //get all the links on a page(var i = 0; i < arr.length; i++)
{
if(arr[i].href.indexOf("http://www.bloggersstand.com") < 0 //​​instead link on this page
&& arr[i].href.indexOf("javascript:") < 0) // link
arr[i].target = "_blank";
}
</script>
Customization:

  • Replace Bloggersstand with your website/blog url. 
Step 3. Save Template.

Installation Steps: [Method:2]


Step 1. Log in to your Blogger account and Go to your Blogger Dashboard.
Step 2. Now Go to Template->Edit HTML
Step 3. Now Search For the </head> tag and copy the below code snippet and add just before/above </head>
<base target='_blank'/>
Step 4. Now Save Your Template..Done ! 

Post a Comment