TomMcCann
Posts: 0
Joined: Sat Aug 17, 2013 2:27 am

back button does not trigger bur, unload or before-unload events

I need to have a bit of code to save the document when the user clicks the back button. I can't get it to work. To test it, I have put js code alert('event name'); in the event. Nothing triggers. The back button itself works- it navigates to previous page, but surely it should trigger these events? Can you think what I might be doing wrong? Thanks for your help.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

back button does not trigger bur, unload or before-unload events

Hello! We tested and it works for us. Could you post screenshot which shows how did you add event?

TomMcCann
Posts: 0
Joined: Sat Aug 17, 2013 2:27 am

back button does not trigger bur, unload or before-unload events

Blur triggers but not unload or 'before-unload'. Ive attached a pic of the events.

Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

back button does not trigger bur, unload or before-unload events

Hello! This is event for window, not page. Add necessary events using JS. For example event of page changing, see all events here http://api.jquerymobile.com/1.3/categ...

Return to “Issues”