1
我创建使用window.open
一个弹出窗口,可以在以后通过opener
有没有问题close()
呼叫关闭,问题是当弹出窗口导航到不同的URL,然后close()
不会做任何事情。问题关闭弹出窗口
我正在使用IE9。
,我使用来测试代码是:
var popup = window.open($(this).attr("href"), "Popup", "width=550,height=300,toolbar=0,scrollbars=0,status=0,resizable=0,location=0,menuBar=0");
setTimeout(function() {
popup.close();
}, 1000);
如果弹出窗口不导航到另一个URL,它关闭,但如果这样做,将不会关闭?
谢谢!