Why is jQuery unload not working in chrome and safari?

后端 未结 7 880
逝去的感伤
逝去的感伤 2020-12-05 17:42

unload function in jQuery works fine in Firefox but not in chrome and safari. please check this fiddle in chrome and Firefox. http://jsfiddle.net/jeevankk/Gywnw/2/ . Alerts

7条回答
  •  死守一世寂寞
    2020-12-05 18:35

    This is because the unload event is not part of any standard

    https://developer.mozilla.org/en/DOM/window.onunload

    check the bottom of the page i just linked to.

提交回复
热议问题