开发者

Detect window closing event in Gecko based browser

How to detect window closing event when user press Alt+F4 or using javascript window.c开发者_如何学Pythonlose() in Gecko based browsers?


window.onbeforeunload =function(){return '';}


.......

window.onunload = function(){
   alert('I am getting closed !!');
};
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜