Skip to content

SiteKickr Web Development

search
search
Mar01March 1, 2011JavaScript, One-Liner

Valid XHTML Strict / target attribute

$('.target-blank').each(function() { $(this).attr('target', '_blank'); }); One line of jQuery, as shown above, allows you to omit your target attribute in favor of the XHTML Strict…

© 2025 SiteKickr