External Links Open New Window
Copy this code and paste it in your HTML
// 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> */
Report this snippet
Comments
Subscribe to comments