简体   繁体   中英

JavaScript browser close event (nob tabs)

I know that onbeforeunload and unload events are triggered while a user closes the browser tab or the browser itself, so my question is:

Is there any way to detect only browser close (not tabs), like you completely destroy your browser process?

根据我对此主题的研究,我发现截至 2017 年 10 月无法在 JavaScript 中处理完整的浏览器关闭事件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM