javascript unload event in safari mobile?

前端 未结 1 1290
抹茶落季
抹茶落季 2021-01-20 14:28

I\'m working on a webapp for iPad with jQtouch and jQuery. The webapp is used in a store and viewed through AVD browse which send me email alerts when the device is shook or

相关标签:
1条回答
  • 2021-01-20 15:09

    I have an answer. It's not what we were hoping for.

    The technical definition of unload from http://www.w3.org/TR/DOM-Level-2-Events/events.html is:

    The unload event occurs when the DOM implementation removes a document from a window or frame. This event is valid for BODY and FRAMESET elements.

    I also got a reply from some in the know at Apple: "Unfortunately, I haven't been able to find an event that fires when the Home button is clicked! I think the most appropriate event for this might be the pagehide event. This event actually does fire in Safari on iOS when you switch to the "tabs" view to open a new page, but not when you click the home screen icon :-("

    0 讨论(0)
提交回复
热议问题