Open Blogger External Links In New Tabs

AOA!
Today i am back with another great post.We will learn HOW TO OPEN EXTERNAL LINKS OF BLOGGER IN NEW TABS.By default all external links like mediafire.com, facebook.com open in a same windows, but today the code which i am giving to you people all external links in new windows.
So lets start.

  • Log-in to your blogger account; go to Design --> Edit HTML, Or for new blogger interface, go to Template --> Edit HTML.
  • Now, press Ctrl+F and find </head>.
  • Just before </head>, paste the below code.  


         


<!-- External links by www.hacking-articles.blogspot.com !-->


<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' type='text/javascript'/>

<script type='text/javascript'>

$(document).ready(function () {

$(&quot;a[href*=&#39;http://&#39;]:not([href*=&#39;&quot;+location.hostname+&quot;&#39;]),[href*=&#39;https://&#39;]:not([href*=&#39;&quot;+location.hostname+&quot;&#39;])&quot;).attr(&quot;target&quot;,&quot;_blank&quot;).attr(&quot;title&quot;,&quot;Opens new window&quot;).addClass(&quot;external&quot;);

});

</script>



<!-- External links by www.hacking-articles.blogspot.com !-->
  • Now save your template and enjoy.
  • You're all done. Just click on any external links in your blogger posts, and it'll open in a new tab.
 KEEP visiting for new tutorials!!!

Share this

Related Posts

Previous
Next Post »