Why is jQuery unload not working in chrome and safari?

后端 未结 7 782
逝去的感伤
逝去的感伤 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:47

    jQuery's unload works well in chrome too, with the exception that Chrome doesn't allow alerts within it. I've used it to set cookies. And if it works with Chrome hope it works in Safari too.

    0 讨论(0)
提交回复
热议问题