[英]window.onunload() is not working in Firefox ? works in IE?
Can anyone tell me how to fire the window.onunload event in Firefox ? 谁能告诉我如何在Firefox中触发window.onunload事件?
My Java Script is , 我的Java脚本是,
window.onunload = function () {
logout();
};
I need to logout the chat session when my application get closes. 我的应用程序关闭时,我需要注销聊天会话。
Any alternative Jquery is there ? 还有其他替代Jquery吗?
Thanks for Jan Hančič. 感谢JanHančič。
I got the solution for onunload in firefox by changing the asynchronous in to synchronous call request. 通过将异步输入更改为同步调用请求,我在firefox中获得了onunload的解决方案。
And its worked well... 而且效果很好...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.