繁体   English   中英

window.open在IE中引发无效参数错误

[英]window.open is throwing invalid argument error in IE

我有IE版本11.0.9600.17358

window.open('editProperties.php?fileid=661BEAB9735A615D65B3FCF676A2F83F', 'editProperties', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=570,height=580,left=490,top=362');

引发无效的参数错误。 我尝试创建一个test.html并仅按名称进行调用:

window.open('test.html')

它不起作用,引发相同的错误。 我只能使用它的时间是:

window.open('', 'editProperties','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=570,height=580,left=490,top=362')

要么

window.open('about:blank')

一旦我将url作为第一个参数传递,它就会引发错误。 有人有什么想法吗?

只需传递name参数,例如:

window.open('/somefile.html', '', 'width=300');

也许在此StackOverflow答案中,您将找到更多详细信息。

哇,我打开了另一个标签,再次输入我的凭据,输入完该链接后,同样的链接就起作用了。 似乎会话超时之类的东西,但仍然显示了加载之间的页面。 如果有人遇到此错误,但以上注释均无效,请尝试打开新标签! 谢谢大家尝试解决我的问题。

暂无
暂无

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

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