How to detect when Mobile Safari is closed?
$(window).bind('beforeunload',function(){
alert('closing');
})
Above code only seems to work for desktop browsers开发者_运维技巧.
You can do alerts on unload, but mobile safari doesn't seem to have beforeunload.
精彩评论