Return to Snippet

Revision: 23917
at February 16, 2010 15:56 by vagrantradio


Initial Code
$("a[href^=http://]").not("a[href^=http://www.yourdomain]").attr("target", "blank");
$("a[href^=http://]").not("a[href^=http://www.yourdomain]").attr("rel", "external");

Initial URL

                                

Initial Description
Add target blank or rel external to outgoing links automatically.

Initial Title
ADD TARGET BLANK TO ALL EXTERNAL LINKS

Initial Tags
jquery, links

Initial Language
jQuery