/ Published in: jQuery
Removes target attributes from elements in one line of jQuery. Useful to prevent links opening in pop-ups.
Expand |
Embed | Plain Text
$('[target]').removeAttr('target');
You need to login to post a comment.
LeeRJohnson on 10/27/10
html strict accessibility XHTML11
2 people have marked this snippet as a favorite
Removes target attributes from elements in one line of jQuery. Useful to prevent links opening in pop-ups.
$('[target]').removeAttr('target');
You need to login to post a comment.