Return to Snippet

Revision: 49802
at July 30, 2011 03:49 by silentpro


Initial Code
// Make External Links Open in New Window with External Rel

$('a[@rel$='external']').click(function(){
  this.target = "_blank";
});

/*
Usage:
<a href="http://www.lepinskidesign.com.br/" rel="external">lepinskidesign.com.br</a>
*/

Initial URL

                                

Initial Description

                                

Initial Title
External Links Open New Window

Initial Tags
javascript, js, textmate, link, window, script, jquery

Initial Language
Other