This will help you to open your every external link
with new tab.try this.
1. Log in to your blogger account and go to Design >> Edit HTML
2. Find this tag By using Ctrl+F </head>
3. Paste below code before the </head> tag
4. now click preview and click save template. you are done.
with new tab.try this.
1. Log in to your blogger account and go to Design >> Edit HTML
2. Find this tag By using Ctrl+F </head>
3. Paste below code before the </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 () { // ---- External Links ---------------------------------------------------------------------------------------------------- $("a[href*='http://']:not([href*='"+location.hostname+"']),[href*='https://']:not([href*='"+location.hostname+"'])").attr("target","_blank").attr("title","Opens new window").addClass("external"); }); </script>
4. now click preview and click save template. you are done.
Thanks man, it really worked. i will apply this code to all of my blogs.
ReplyDeletehere is the demo link > http://cellphonedesigns.blogspot.com/
Thank you so much. Very simple to do, and it works.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteI'm back... This works fine in the latest Firefox, Opera, Safari and Chrome, but there seems to be a problem with Internet Explorer.
ReplyDeleteIt works with IE8, which I have on an old Windows XP laptop, but just opens a new blank tab with IE9 on my Windows 7 laptop.
I use Firefox, myself, but of course, many who visit blogs will have IE as their default browser.
Is there any way round this?
I forgot. With IE9, commenter's link backs to their blogs don't work, either.
ReplyDeleteI dont know why its not working for my page...it says code not be parsed
ReplyDeleteThanks it work fine!
ReplyDeletethanks...its really work in my blog..
ReplyDeletethank you so much..
sir please help me
ReplyDeletei try this code it works but the side effects is after placing that code my submenu is not openning please view this
http://trixmania.blogspot.com
all submenus in pagemenu is not opening.. like BLOGGER>> , SMART >>
Thank you very much. Working fine for my blog http://ebeautifulworld.blogspot.com/
ReplyDeleteVery nice post and with the help of this every blogger can reduced their blog bonus ratio.
ReplyDeleteThis is really cool. Now my blog can also act as a professional website, as far as the 'external link opening' is concerned. :)
ReplyDeletewow its working fine in Google crome in India
ReplyDeleteThnx dude
This is perfect! Every other website makes it seem so difficult and complicated. This was exactly what I wanted! Thanks!!!!
ReplyDelete