Mobile safari hide/close event
I'm looking for a way to track when a user hides mobile safari by pressing the home button or switching tabs. This doesn't trigger the onunload event, as the tab isn't开发者_如何学C closed, it's just been put in the background.
Does mobile safari trigger this event at all?
So it turns out there is a 'pagehide' and 'pageshow' events that do get triggered. Only tested on 4.x+
精彩评论