阅读背景:

如何检测浏览器窗口/选项卡关闭事件?

来源:互联网 

I am Trying with onbeforeunload, and Unload function. But it didn't work. When clicking a link or refreshing, this event got triggered. I want an event that is triggered only when a browser window or tab is closed. The code must work in all browsers. I am Trying with onbeforeunload, and Unload fun




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: