Hi Adam, Welcome to the community. I haven't tried this, but how about:
// each a-tag
$('a').each(function(){
// if the url contains http or https we take it it's an external url
if(this.href.match(/https?/)){
// when the link is clicked, open a popup and stop the parent
going anywhere
$(this).click(function(){
window.open(this.href);
return false;
});
}
});
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
