First type: The following code is for the jb51 style. All a will open in a new window
Second:
In new window Open external link
$('a[href^=" http://"]')
.attr("target", "_blank");
Third type: If you want more convenient control The XHTML 1.0 Strict version does not support the target="_blank" attribute, but using JQuery can solve this problem very well and open the web page in a new window:
$('a[@rel$='external']').click(function(){
this.target = "_blank";
});
/*
Usage:
*/