Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch 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
40 views



Related Hot Questions



Government Jobs Opening


...