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.

No comments:
Post a Comment
Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.
Note:
1. Make sure to click the "Subscribe By Email" link below the comment to be notified of follow up comments and replies.
2. Please "Do Not Spam" - Spam comments will be deleted immediately upon our review.
3. Please "Do Not Add Links" to the body of your comment as they will not be published.
4. Only "English" comments shall be approved.
5. If you have a problem check first the comments, maybe you will find the solution there.