Posted By

silentpro on 07/30/11


Tagged

javascript js textmate link window script jquery blank new rel target


Versions (?)

External Links Open New Window


 / Published in: Other
 

  1. // Make External Links Open in New Window with External Rel
  2.  
  3. $('a[@rel$='external']').click(function(){
  4. this.target = "_blank";
  5. });
  6.  
  7. /*
  8. Usage:
  9. <a href="http://www.lepinskidesign.com.br/" rel="external">lepinskidesign.com.br</a>
  10. */

Report this snippet  

You need to login to post a comment.