Return to Snippet

Revision: 25028
at March 18, 2010 05:26 by satonthat


Initial Code
$("a[href*='http://']:not([href*='"+location.hostname+"'])").click( function() {
window.open( $(this).attr('href') );
return false;
});

Initial URL


Initial Description


Initial Title
Open all external links in a new window using Jquery

Initial Tags
javascript, jquery

Initial Language
jQuery