【问题标题】:window.open not working in IEwindow.open 在 IE 中不起作用
【发布时间】:2011-08-02 18:06:56
【问题描述】:

尝试让它运行,在 Firefox、Safari、Chrome 和其他任何东西中运行,但 IE7 不会打开弹出栏,在控制台中我只是得到“无效参数”

它在图像的点击中

<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"/>

【问题讨论】:

    标签: javascript html explorer


    【解决方案1】:

    目标不允许有空格。

    <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"/>
    

    【讨论】:

    • 呃,多么琐碎!非常感谢。我想我几年前也有过这种情况
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-06
    • 2011-10-18
    • 2012-05-23
    • 2018-11-06
    • 2018-05-23
    相关资源
    最近更新 更多