/ Published in: jQuery
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$("a[href*='http://']:not([href*='"+location.hostname+"'])").click( function() { window.open( $(this).attr('href') ); return false; });
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)
$("a[href*='http://']:not([href*='"+location.hostname+"'])").click( function() { window.open( $(this).attr('href') ); return false; });