[英]Catch browser closing event in safari running in iPhone, iPad etc
How do i capture the browser closing event in safari running in iPhone ,iPad, itouch etc. as the onbeforeunload event will not work with safari? 由于onbeforeunload事件不适用于野生动物园,我该如何在iPhone,iPad,iouch等运行的野生动物园中捕获浏览器关闭事件?
Many thanks, Hariprasath 非常感谢,Hariprasath
Safari for iOS supports the unload event, which should do the trick. 适用于iOS的Safari支持unload事件,这可以解决问题。 You can find out more information about supported Safari for iOS events here: 您可以在此处找到有关受支持的Safari for iOS事件的更多信息:
https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
Hope that helps. 希望能有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.