$(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.
$(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.
精彩评论