External Links Open New Window


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.