[英]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:我知道当用户关闭浏览器选项卡或浏览器本身时会触发onbeforeunload
和unload
事件,所以我的问题是:
Is there any way to detect only browser close (not tabs), like you completely destroy your browser process?有没有办法只检测浏览器关闭(不是标签),就像你完全破坏了浏览器进程一样?
根据我对此主题的研究,我发现截至 2017 年 10 月,无法在 JavaScript 中处理完整的浏览器关闭事件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.