gpt4 book ai didi

javascript - window.open 在 IE 中不工作

转载 作者:行者123 更新时间:2023-11-30 10:48:32 25 4
gpt4 key购买 nike

尝试让它运行,在 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"/>

关于javascript - window.open 在 IE 中不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6916527/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com