Posted By

cesgra on 10/26/09


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

cesgra
ruhanirabin


Open External Links In New Window


 / Published in: jQuery
 

URL: http://css-tricks.com/snippets/jquery/open-external-links-in-new-window/

use "rel" attribute with "external"

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

Report this snippet  

You need to login to post a comment.