I need to obtain any event when user clicks the close button of the current browser tab. No one method which I use in such cases worked (for example onunload, unload and pagehide events handling not detection close tab, only change or update tab).
Asked
Active
Viewed 4,083 times
1 Answers
1
From the Safari documentation:
unload Deprecated, use pagehide instead.
It looks like pagehide actually fires when you click on the "tabs" view to open a new page (see here in ghenne's answer) but other than that, no event even exists for closing browser on Mobile Safari! Found info here and here as well.

Community
- 1
- 1

Jay McVety
- 186
- 1
- 2
- 17