By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,569 Members | 1,386 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,569 IT Pros & Developers. It's quick & easy.

window.onunload = function() is not working in Chrome

P: 1
I need to fire an ajax function inside the window.onunload = function(). but its not working inside the chrome browser only.. Its working on IE & Firefox. In the Chrome browser even an alert inside the window.onunload = function() will not get executed. How can I execute this one in Chrome. Is there any other way we can do it? (can't use the window.onbeforeunload = function()also)
Aug 9 '12 #1
Share this Question
Share on Google+
1 Reply


gits
Expert Mod 5K+
P: 5,320
have a look here for a discussion regarding webkits unload/pagehide events
Aug 9 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.