在window.open打开的窗口里再用window.open办法打开一窗口

来源:百度知道 编辑:UC知道 时间:2024/05/21 17:58:28
在window.open打开的窗口里再用window.open办法打开一窗口

代码如下:

<a href="#" onClick=window.open('test.html','blank_','scrollbars=yes,resizable=no,width=650,height=450')>单击弹出窗口</a>

存为“test.html”

做到在第一次跳窗的窗口里单击链接的时候仍然跳出一个新窗口打开页面。
请把代码存到本地测试,第一个window.open打开的本来就是test.html页面,里面的那个链接就是window.open方法。也执行这个方法了,只是它打开的目标窗口变成了本窗口,没有跳出新窗口来。

应该是这个
<a href="#" onClick=window.open('test.html','_blank','scrollbars=yes,resizable=no,width=650,height=450')>单击弹出窗口</a>

将blank_改为_blank就可以了

再加多句不就可以了吗?
<a href="#" onClick=window.open('test1.html','blank_','scrollbars=yes,resizable=no,width=650,height=450')>单击弹出窗口</a>

存为“test1.html”