Detect update browser for unloading / before downloading when closing the browser

This is actually a continuation of my last question . I still run into a problem, because when I update the browser, it either unloads, or starts up, and also starts up, which I only want when the browser is closed. Just moved in my opinion to use window.outerHeight or window.innerHeight, but still can't figure out how to do this. Any suggestion / snippet? Thanks in advance.

+1
javascript
source share
1 answer

As far as I know, it is impossible to detect the browser close separately from the browser update, because the browser does not provide a web page (window) with this information. As for your page and Javascript code, these two are one and the same.

Since you need browser information, the only way to get it is to use something that has access to this information, i.e. browser plug-in. But then you need to make a plugin for each browser and get access to each user. Since I doubt very much that you will find it worthwhile, the real answer to your question (as disappointing as it may be) is: stop trying to detect updates and close and move on.

+1
source share

All Articles