1 、点击链接打开新窗口
<a target="_blank" href="" title="返回">返回>></a>
target="_blank" 标签就起到了在新窗口打开页面,而非刷新当前页面到新的地址
2、 点击按钮打开新窗口
方式一:在原来的窗口上打开新窗口
<input type="button" value="点击我看看效果" οnclick="window.location =''" />
方式二:在新打开的窗口上打开新窗口
<input type="button" value="点击我看看效果" οnclick="window.open ('')" />
方式三:在新打开的一块小窗口上打开新窗口,此窗口没有菜单栏
<input type="button" value="点击我看看效果" οnclick="window.showModalDialog ('')" />
window.showModalDialog()方法用来创建一个显示HTML内容的模态对话框,由于是对话框,因此它并没有
一般用window.open()打开的窗口的所有属性。