Learn How To Become a blogger ,Free Templates,Blogger Widgets, Blogger Gadgets,Blogger Tricks And Tips ,Download browsers,software,Net

Tuesday, August 28, 2012

External links open in a new window automatically in blogger

"External links open in a new window automatically in blogger "When you visit some Blog or Website, you must have noticed that when you click on a link, it opens in a new window. This is a great idea used by many people as it keeps the users on your page
At times alienate users on external links and back again to the content of your blog; and in some cases, links to be useful to them and thus lose visitors from your blog
 So you had to add this tool that enables open any external links in new window
External links open in a new window automatically is very easy thing to do.
 How To Install:
  1. click on the 'template' tab
  2. Backup your Template before making any changes to your blog
  3. Now Expand Widget Templates
  4.  click on the "Edit HTML".
  5. Now find this code
  • and replace it with
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

<script type="text/javascript">

    jQuery - External Links
     by - http://bloggertofree.com/


$(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");

 Save; then add the external link to test it , done!


Post a Comment

Please do not spam Spam comments will be deleted immediately upon our review.

JeHad Hussein

Note: Only a member of this blog may post a comment.

Subscribe via email for free

Activate your subscription by clicking on the link in an email from Feedburner. We respect your privacy.

Most Popular


random topics


Are you looking for?

Become a Fan On Facebook!

Follow @Bloggertofree