繁体   English   中英

window.open无法在IE中工作

[英]window.open not working in IE

试着让它运行,运行在Firefox,Safari,Chrome等等但是IE7没有打开弹出栏,在控制台我只是得到“无效的参数”

它是在图像的onclick

<img style="cursor: hand; cursor: pointer;" onclick='window.open("http://www.test.com", "Image Gallery", "width=850,height=1000,resizable=no,menubar=no");' src="thumb.jpg" width="64" height="64"/>

目标不允许有空格。

<img style="cursor: hand; cursor: pointer;" onclick='window.open("http://www.test.com", "Image_Gallery", "width=850,height=1000,resizable=no,menubar=no");' src="thumb.jpg" width="64" height="64"/>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM