wiilweer Posted January 22, 2012 Share Posted January 22, 2012 Hello, I've problem with jQuery event unLoad() and same story with <body unload="">. When I close tab, event is triggered. When I close entire browser event is not triggered and I can't save user stats. Can anybody give me working hint? Thanks. Link to comment https://forums.phpfreaks.com/topic/255529-trigger-event-when-browser-is-closed/ Share on other sites More sharing options...
wiilweer Posted January 22, 2012 Author Share Posted January 22, 2012 Maybe this will give more suggestions: Idea is that when user leaves page user stats are saved. So maybe detect session end or something, but I'm out of ideas. :s Thanks Link to comment https://forums.phpfreaks.com/topic/255529-trigger-event-when-browser-is-closed/#findComment-1310109 Share on other sites More sharing options...
nogray Posted January 23, 2012 Share Posted January 23, 2012 did you try onbeforeunload? Link to comment https://forums.phpfreaks.com/topic/255529-trigger-event-when-browser-is-closed/#findComment-1310205 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.