Posted By

math89 on 12/15/09


Tagged

link


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

netzwerktourist


XHTML 1.0 Strict valid target="blank" attribute


 / Published in: jQuery
 

The target="blank" attribute is not valid XHTML 1.0 Strict. using jQuery, you can achieve the same functionality without having validation problems.

  1. $("a[@rel~='external']").click( function() {
  2. window.open( $(this).attr('href') );
  3. return false;
  4. });

Report this snippet  

You need to login to post a comment.