/ Published in: jQuery

Add attribute to links to open them in a new window. Example - rel="external". Alternative to target="_blank", conforming to XHTML specification.
Expand |
Embed | Plain Text
$('a[rel*=external]').click(function() { window.open(this.href); return false; });
You need to login to post a comment.