Here's following the easy step.
1- Go to your Blogger Dashboard
2- Go to Template >> Edit HTML
3- In the HTML code box, press Ctrl+F, then type the tag
</head>
4- Copy the following code and paste just before/above the </head> tag
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() {$("a[href^='http://']").each(function(){if(this.href.indexOf(location.hostname) == -1) {$(this).attr('target', '_blank');}});$("a[href^='https://']").each(function(){if(this.href.indexOf(location.hostname) == -1) {$(this).attr('target', '_blank');}});});</script>
Note: Do not add the red code if you already have jQuery library code installed in your blog.
5- Save template
That's it!
Don't forget to share to your friends by clicking sharing button below.
إرسال تعليق