开发者

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+

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜