捕获事件 onclose 浏览器 [英] Capture event onclose browser
本文介绍了捕获事件 onclose 浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 jQuery 或 javascript 中捕获事件、关闭浏览器窗口?
How I can capture event, close browser window, in jQuery or javascript ?
推荐答案
您正在寻找 onclose 事件.
You're looking for the onclose event.
参见:https://developer.mozilla.org/en/DOM/window.关闭
请注意,并非所有浏览器都支持此功能(例如 firefox 2)
note that not all browsers support this (for example firefox 2)
这篇关于捕获事件 onclose 浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文