Return to Snippet

Revision: 17763
at September 14, 2009 05:13 by gfazioli


Updated Code
$('a[target=_blank]').not('.notarget').addClass('external');

// html markup

<a target="_blank">I have the external (class) icon</a>
<a target="_blank" class="notarget">I have not the external (class) icon</a>

Revision: 17762
at September 14, 2009 05:10 by gfazioli


Initial Code
$('a[target=_blank]').not('.notarget').addClass('external');

//

<a target="_blank">I have the external (class) icon</a>


<a target="_blank" class="notarget">I have not the external (class) icon</a>

Initial URL
http://www.undolog.com

Initial Description
This version add a special class to avoid external link icon in specify link

Initial Title
jQuery, ultimate target _blank link

Initial Tags
jquery

Initial Language
jQuery