开发者

Catch browser closing event in safari running in iPhone, iPad etc

开发者 https://www.devze.com 2023-04-13 07:22 出处:网络
How do i capture the browser closing event in safa开发者_Python百科ri running in iPhone ,iPad, itouch etc. as the onbeforeunload event will not work with safari?

How do i capture the browser closing event in safa开发者_Python百科ri running in iPhone ,iPad, itouch etc. as the onbeforeunload event will not work with safari?

Many thanks, Hariprasath


Safari for iOS supports the unload event, which should do the trick. You can find out more information about supported Safari for iOS events here:

https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html

Hope that helps.

0

精彩评论

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

关注公众号