我正在使用设置间隔功能。以下是我的代码
popupWindow = window.open ('test.php','_blank','width='+w+',height='+h+',toolbar=no,menubar=no,resizable =no,directories = no');
x = popupWindow.outerWidth ;
y = popupWindow.outerHeight ;
var timer = setInterval(function() {
if(popupWindow.closed) {
clearInterval(timer);
alert('closed');
}
}, 1000);
这是工作chrome和IE但不是firefox。请帮忙