Posted By

gerhardsletten on 10/13/10



Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Open extenal links in new window

 / Published in: jQuery

Add rel="external" on link you would like to open in a new window

  1. jQuery(document).ready(function () {
  2. jQuery("a[rel='external']").each( function(i) {
  3. jQuery(this).attr("target","_blank");
  4. });
  5. });

Report this snippet  

You need to login to post a comment.