Using jQuery to target=blank

Replicate the target="_blank" attribute with this HTML5 valid example in jQuery

 


Author: Anonymous
Added: Friday, 11 Jul, 2014
Category: jQuery
Tags: HTML

Code

$('a[data-rel*=external]').click( function() {
window.open(this.href);
return false;
});

Comments