Return to Snippet

Revision: 322
at July 9, 2006 17:36 by walepinski


Initial Code
$('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
Open a new window without using target="_blank" for XHTML 1.1.
Need jQuery Framework : http://jquery.com/

Initial Title
[ jQuery ] Target Blank Links

Initial Tags
window, jquery, links

Initial Language
JavaScript