window.open在IE中抛出无效参数错误

时间:2014-12-11 15:27:59

标签: javascript internet-explorer window.open

我有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作为第一个参数传递,它就会抛出错误。有人有什么想法吗?

2 个答案:

答案 0 :(得分:0)

只需传递name参数,例如:

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

也许in this StackOverflow answer你会发现更多细节。

答案 1 :(得分:0)

哇,哇,我打开了另一个标签,在输入之后再次问我我的凭据,同样的确切链接正常工作。这似乎是会话超时或者其他什么,但仍然显示了加载之间的页面。如果有人遇到此错误且上述评论均无效,请尝试打开新标签! 谢谢大家试图解决我的问题。

相关问题