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.
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 () {
$("a[href*='http://']:not([href*='"+location.hostname+"']),[href*='https://']:not([href*='"+location.hostname+"'])").attr("target","_blank").attr("title","Opens new window").addClass("external");
});
</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.