标签: javascript gecko
如何在用户按下Alt + F4或在基于Gecko的浏览器中使用javascript window.close()时检测窗口关闭事件?
答案 0 :(得分:0)
window.onbeforeunload =function(){return '';}
答案 1 :(得分:0)
.......
window.onunload = function(){ alert('I am getting closed !!'); };