浏览器崩溃处理程序 [英] Browser Crash Handler

查看:65
本文介绍了浏览器崩溃处理程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



除了onUnload之外,是否有任何事件侦听器或窗口侦听器用于Browser Crash事件?有什么方法可以在应用程序或系统崩溃时调用JS函数吗?


问候

Ramanan Kalirajan

Hi,
Is there any event listener or window listener for Browser Crash event other than onUnload? Is there any way to call a JS function when an application or system is crashed?

Regards
Ramanan Kalirajan

推荐答案

当系统崩溃时,通常在重新加载之前不会执行任何操作? (在FF中可能有一个设置可用于崩溃状态,因此你可以在重新加载时执行一些操作)
when a system crashes it usually doesn''t execute anything until reloaded? (in FF there may be a setting available where the crash status is given so you can execute something on reload)


我不这么认为,尽管你可能会编写特定于浏览器的用于处理崩溃的代码事件。你想运行什么样的功能?
I don''t think so, though you could probably write browser-specific code to deal with a "crash" event. What kind of function would you want to run?


在我的应用程序中,我在会话中维护用户的详细信息。当浏览器崩溃时,必须仅为此发布设施。以前我试过onUnload in body它在IE中工作但不在Mozilla中,由于安全问题,他们已经阻止执行onunload。然后考虑使用onbeforeunload监听器但是使用它们有一些缺点,例如,它总是提示确认消息,即使刷新页面也会触发它。有没有任何关于此的建议.....提前致谢。


问候

Ramanan Kalirajan
In my application I am maintaining the user details in session. When the browser crashes the facilities must be released for that only. Previously i tried with onUnload in body it works in IE but not in Mozilla, due to Security issues they have prevented executing onunload. Then thought of using onbeforeunload listener but there are some drawbacks in using them such as, it allways prompts a confirmation msg, It is triggered even when the page is refreshed. Is there any suggestion regarding this..... Thanks in advance.

Regards
Ramanan Kalirajan


这篇关于浏览器崩溃处理程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆