/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function externalLinks(){ var baseAddress = window.location.hostname; $("a[href^='http:']").not("[href*='"+baseAddress+"']").click(function(){ window.open(this.href); return false; }) }