/ Published in: jQuery
This version add a special class to avoid external link icon in specify link
Expand |
Embed | Plain Text
$('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>
Comments
Subscribe to comments
You need to login to post a comment.

not so ultimate. target is deprecated since the XHTML 1.0 Specs...