开发者

JS event to see if Mobile Safari has been closed?

开发者 https://www.devze.com 2023-02-22 00:25 出处:网络
Is there a JS event t开发者_运维百科hat gets triggered if a user closes Safari on their iPhone? onunload works if a person leaves a page, but is not called when the browser is closed.

Is there a JS event t开发者_运维百科hat gets triggered if a user closes Safari on their iPhone? onunload works if a person leaves a page, but is not called when the browser is closed.

My hunch is, no, there is no event triggered, as closing Mobile Safari merely 'minimizes' it rather than actually closes it. Can anyone confirm?


Not exactly, but look in the comments for the pagehide event: What event fires when a WebKit WebApp is "terminated"

0

精彩评论

暂无评论...
验证码 换一张
取 消