/ Published in: jQuery
Add target blank or rel external to outgoing links automatically.
Expand |
Embed | Plain Text
$("a[href^=http://]").not("a[href^=http://www.yourdomain]").attr("target", "blank"); $("a[href^=http://]").not("a[href^=http://www.yourdomain]").attr("rel", "external");
You need to login to post a comment.
