Return to Snippet

Revision: 35106
at November 2, 2010 18:02 by nonsalant


Initial Code
$("#content a[href^='http://']").attr('target','_blank');

Initial URL


Initial Description
This jQuery code should make all external links from the #content div open in a new window.

Initial Title
External links open in new window

Initial Tags
jquery

Initial Language
JavaScript