I found this great script that I think will be very useful to you as its very useful to me which I cant wait but to share it with you
Am sharing this blog post with the blogger pro and the blogger gurus and both the new bee who have been finding it difficult to open all external link in new tap.
The Importance of this Script
It boost your page view, or what did you think when someone visited your blog and click on an external link and it open in a new tap without being distracted from your blog page, thereby giving your blog reader a safer way of viewing your blog post without navigating in opening the external link in the same window of your blog, and not leaving your blog for something else.
Steps To Follow To Get it Done Perfectly
1. Back up your blog
2. Go to edit HTML
3. Search for </head> by pressing the Crl + F in your computer keyboard
3. Paste the below code before </head> tag
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<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>
It will open all external link in new window or new tab.
Hope it work for you.
No comments:
Post a Comment