Friday, 23 August 2013

how to detect moving to a new tab in Mobile Safari

how to detect moving to a new tab in Mobile Safari

I would like to know how to get the equivalent of a $(window).blur event
in mobile safari on iOS 6+. I would like this for the purpose of detecting
when a tab is no longer onscreen. This has been asked a few times before
(Detect moving to a new tab in Mobile Safari), however, all the answers
either no longer work, or only give a $(window).focus event, rather than a
$(window).blur event. Also, will $(window).blur fire on closing of safari?

No comments:

Post a Comment