Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


Mobile browsers can not catch closing tab/browser event


I need to catch closing tab/browser on mobile. onunload & onbeforeunload javascript event can catch refresh page, submit form, redirect page, close tab/browser... It worked perfectly on PC, but when I tried these events on mobile browsers (Chrome on Android, Safari on iOs). It can not catch closing tab/browser event. Please see my code below:

 
  php echo "Test onunload and onbeforeunload event"; ?>

Could you please advise?

Thanks


asked Aug 18, 2015 in JAVASCRIPT by rajesh
0 votes
38 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...