heminfotech Posted November 5, 2007 Share Posted November 5, 2007 Hi I would like to update the status of users of my site. I am not getting any clue as to how execute a script on close event of the browser. I have tried one thing that is I have used to call popup to execute it on unload of the page. there are 2 problems that window.open() is not working firefox and also I have to make the changes to more than 100's of pages. So Please if anyone has Idea or can help me It will be aprreciable. Thanks for all your support Regards Hemal Jivani Quote Link to comment https://forums.phpfreaks.com/topic/76045-how-to-execute-script-on-browser-close-event/ Share on other sites More sharing options...
ToonMariner Posted November 5, 2007 Share Posted November 5, 2007 <body onunload="yourjsfunction();"> this function should be and ajax call to a server side script that will update the user status. Quote Link to comment https://forums.phpfreaks.com/topic/76045-how-to-execute-script-on-browser-close-event/#findComment-384980 Share on other sites More sharing options...
dewey_witt Posted November 10, 2007 Share Posted November 10, 2007 LOL I realy like you signature select * from staff lol funny shit. Quote Link to comment https://forums.phpfreaks.com/topic/76045-how-to-execute-script-on-browser-close-event/#findComment-388373 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.