IE下window.open()第二个参数
今天在IE下遇到了一个对于我来说的一个诡异的问题,
window.open("test02.php","just test","menubar=1,location=1");
window.open("test02.php","juestest","menubar=1,location=1");
这本来是一个很简单的句子,第一句在IE下面不起作用,第二句就可以,区别在于第二个参数多了一个空格,自己还2B一样以为发现了IE的bug,结果别人深深的鄙视了。
?
下面是别人的总结:
?
http://stackoverflow.com/questions/710756/ie8-var-w-window-open-message-invalid-argument
?
This is an old posting but maybe still useful for someone.
I had the same error message. In the end the problem was an invalid name for the second argument, i.e., I had a line like:
In fact, reading carefully I realized that Microsoft does not support a?name?as second argument. When you look at the?official documentation page, you see that Microsoft only allows the following arguments, If using that argument at all: