LATEST: We are offering PENTESTING and WEB DEVELOPMENT service with low price Learn More

6/16/2013

Open Blogger External Links In New Tabs

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.

  • 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 () {

$(&quot;a[href*=&#39;http://&#39;]:not([href*=&#39;&quot;+location.hostname+&quot;&#39;]),[href*=&#39;https://&#39;]:not([href*=&#39;&quot;+location.hostname+&quot;&#39;])&quot;).attr(&quot;target&quot;,&quot;_blank&quot;).attr(&quot;title&quot;,&quot;Opens new window&quot;).addClass(&quot;external&quot;);

});

</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.
 KEEP visiting for new tutorials!!!

About Author:

Hi, Its me Aamir Khan, Owner of HACKING ARTICLES. I am an Ethical Hacker, Pro Blogger, addicted Web Developer and Security Researcher with experience in various aspects of Information Security. I am from Pakistan.Hacking is my passion and i wanna myself to be called as a LEGEND in this field.

Follow him @ Twitter | Facebook


0 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.