set all links to open in new window

by jelontok

HTML

<a href="http://google.com">Link</a>

JavaScript

// set all links to open in new window
jQuery('a').click(function (){
    jQuery(this).attr('target', '_blank');
});