test new window
by spacexplorer
HTML
<a href="http://google.com/" target="_blank" onclick="var w=window.open(this.href,this.target); return w?false:true">Go</a>|
<a href="http://google.com/"
onclick="window.open('http://msn.com','_blank')">Go</a>|
<a href="#" onclick="window.open('http://google.com/', '_self')">Go</a>|
<!--but if you want to open a new window you need to use _blank-->
<a href="#" onclick="window.open('http://google.com/', '_blank')">Go</a>|
<!--https://developer.mozilla.org/en/DOM/window.open-->
<a href="#" onclick="window.open('http://google.com/', 'myWindowName', 'location=1, status=0, scrollbars=0, titlebar=0, menubar=0, toolbar=0, location=0, dialog=0, personalbar=0, resizable =0, dependent=1, width=500, chrome=0, modal=1, alwaysRaised=1, height=600')">Go</a>