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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kalana
    New Member
    • Aug 2012
    • 1

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

    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.onbefore unload = function()also)
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    have a look here for a discussion regarding webkits unload/pagehide events

    Comment

    Working...