//打开窗口
var winObj = window.open('http://www.google.com','google','width=800,height=600,status=0,toolbar=0');
//循环监听
var loop = setInterval(function() {
if(winObj.closed) {
clearInterval(loop);
alert('closed');
}
}, 1000);
//打开窗口
var winObj = window.open('http://www.google.com','google','width=800,height=600,status=0,toolbar=0');
//循环监听
var loop = setInterval(function() {
if(winObj.closed) {
clearInterval(loop);
alert('closed');
}
}, 1000);