/ Published in: JavaScript

Open a new window without using target="_blank" for XHTML 1.1.
Need jQuery Framework : http://jquery.com/
Need jQuery Framework : http://jquery.com/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('a[@rel$='external']').click(function(){ this.target = "_blank"; }); /* Usage: <a href="http://www.lepinskidesign.com.br/" rel="external">lepinskidesign.com.br</a> */
Comments
