JavaScript& IE6:onbeforeUnload [英] JavaScript & IE6: onbeforeUnload

查看:54
本文介绍了JavaScript& IE6:onbeforeUnload的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在为办公室建立一个基于网络的应用程序,并通过网络服务器和客户端计算机(使用IE6)完全控制




我想阻止员工使用Alt-F4关闭IE6。我可以用onbeforeUnload来做那个

,但不幸的是我总是得到这个消息框:


你确定要离开这个页面吗?

<我的消息>

按OK继续,或按取消停留在当前页面。


有没有办法摆脱这个消息框?我只想要留在当前页面上的
无需按取消。 (员工可以通过按F12离开

应用程序,将变量

''booleanLeaveAllowed''设置为true,这样他们就不必按按可以继续

离开申请表。

正如我之前提到的,我可以控制客户端计算机,所以如果我可以

通过修改注册表来做到这一点,没问题。客户有OS Windows

Workstation 4.0。

谢谢,


Ray

P.S.请盖茨先生,摆脱那些不断推出的白痴

消息箱在IE中你不能禁用!!!! F3键也没用,因为

设置NoFindFiles后(员工不允许浏览)你继续

按F3时收到消息框而没有办法禁用它

弹出!!!!

Hi,

I am building a webbased application for the office, and have full control
over the webserver and the clientcomputers (with IE6).

I want to prevent that the employees use Alt-F4 to close IE6. I can do that
with the onbeforeUnload, but unfortunately I always get this messagebox:

Are you sure you want to navigate away from this page?
<my message>
Press OK to continue, or Cancel to stay on the current page.

Is there ANY way to get rid of this messagebox? I simply want "to stay on
the current page" without having to press Cancel. (The employees can leave
the application by pressing F12, that sets the variable
''booleanLeaveAllowed'' to true, so they don''t have to "press OK to continue"
to leave the application).
As I mentioned earlier, I have control over the client computers so if I can
do it by modifying the registry, no problem. The clients have OS Windows
Workstation 4.0.
Thanks,

Ray
P.S. Please Mr. Gates, get rid of the moron that keeps on putting
messageboxes in IE you can''t disable!!!! The F3 key is also useless because
after setting NoFindFiles (employees are not allowed to browse) you keep on
getting a messagebox when pressing F3 without the means to disable it from
popping up!!!!

推荐答案

R。 van Laake写道:
R. van Laake wrote:
我正在为办公室建立一个基于网络的应用程序,并通过网络服务器和客户端计算机(使用IE6)完全控制。
<我希望防止员工使用Alt-F4关闭IE6。我可以使用onbeforeUnload来做
,但不幸的是我总是得到这个消息框:


你这样做是为了迫使你的观众退出吗?如果是这样的话:


你是否也可以控制他们电脑上的关闭开关?


你可以*确保*窗户永远不会崩溃?


在这两种情况下,booleanLeaveAllowed永远不会成立;

客户端有OS Windows
Workstation 4.0。
I am building a webbased application for the office, and have full control
over the webserver and the clientcomputers (with IE6).

I want to prevent that the employees use Alt-F4 to close IE6. I can do that with the onbeforeUnload, but unfortunately I always get this messagebox:
Are you doing this to force your viewer to "log out"? If so then:

Do you also have control over the off switch on their computer?

Can you *ensure* that windows will never crash?

In both cases booleanLeaveAllowed will never be true;
The clients have OS Windows
Workstation 4.0.



古老的?


-

干杯

理查德。



That ancient?

--
Cheers
Richard.


2004年11月8日星期一12:56:33 +0100,R。 van Laake"

< no *************** @ dfk.nl>写道:
On Mon, 8 Nov 2004 12:56:33 +0100, "R. van Laake"
<no***************@dfk.nl> wrote:
有没有办法摆脱这个消息框?我只想要留在当前页面上。无需按取消。 (员工可以通过按F12离开应用程序,将变量
''booleanLeaveAllowed''设置为true,这样他们就不必按OK继续
离开申请表。
Is there ANY way to get rid of this messagebox? I simply want "to stay on
the current page" without having to press Cancel. (The employees can leave
the application by pressing F12, that sets the variable
''booleanLeaveAllowed'' to true, so they don''t have to "press OK to continue"
to leave the application).




Zeepe - http://www.meadroid.com/zeepe/ 将让您实现对此类应用程序的正确控制。


吉姆。



Zeepe - http://www.meadroid.com/zeepe/ will let you achieve proper
controls of this sort of application.

Jim.


>你这样做是为了迫使你的观众退出吗?

是的。必须执行许多任务,例如记录他们的注销时间,

显示员工的计划等。
> Are you doing this to force your viewer to "log out"?
Yes. A number of tasks has to be performed like logging their log-off time,
showing the employee the planning, etc.
您是否也可以控制电脑上的关机开关?
当然不是,这是一个多么愚蠢的问题。你有什么暗示,我应该什么都不编程,因为员工可能会关掉电脑,

或者不是故意的?

你能*确保*窗户永远不会崩溃吗?
如果我能在一夜之间成为亿万富翁。
Do you also have control over the off switch on their computer? Of course not, what a stupid question. What are you implying, that I should
program nothing at all because the employees may turn off the computer,
either or not intentionally?
Can you *ensure* that windows will never crash? If I could I would and probably be a billionaire overnight.
客户端有OS Windows Workstation 4.0。
The clients have OS Windows Workstation 4.0.



是的,那个古老的。我认为你认为刷掉300美元的新台币许可证会更聪明,购买300个新的XP许可证,并因此购买

300台新计算机因为XP在Pentium I / II上运行得不好,并且在一天结束时意识到计算机正在执行的任务

完全相同在你花了所有的钱之前他们正在做什么。他们只需要运行IE6,仅此而已。

如果您只能做一个pisser,请去厕所而不是

新闻组。 />


" rf" < RF @。无效>在消息中写道

news:tk ****************** @ news-server.bigpond.net.au ... R. van Laake写道:


Yes, that ancient. I assume you think it would be much smarter to flush 300
NT licenses down the drain, buy 300 new XP licenses, and because of that buy
300 new computers becauze XP doesn''t run that well on a Pentium I/II, and at
the end of the day realize that the tasks the computers are perfoming now
are EXACTLY the same was what they were doing before you spent all that
money. They only have to run IE6, nothing more, nothing less.
If all you can do is be a pisser please go to a toilet instead of a
newsgroup.


"rf" <rf@.invalid> wrote in message
news:tk******************@news-server.bigpond.net.au... R. van Laake wrote:

我正在为办公室建立一个基于网络的应用程序,并且对网络服务器和客户端计算机(使用IE6)有完全的
控制权。

我想阻止员工使用Alt-F4关闭IE6。我可以使用onbeforeUnload来
I am building a webbased application for the office, and have full control over the webserver and the clientcomputers (with IE6).

I want to prevent that the employees use Alt-F4 to close IE6. I can do


,但不幸的是我总是得到这个消息框:
with the onbeforeUnload, but unfortunately I always get this messagebox:



你这样做是为了强迫您的观看者退出?如果是这样的话:

你是否也可以控制他们电脑上的关闭开关?

你可以*确保*窗户永远不会崩溃吗?



Are you doing this to force your viewer to "log out"? If so then:

Do you also have control over the off switch on their computer?

Can you *ensure* that windows will never crash?

In both cases booleanLeaveAllowed will never be true;

客户端有OS Windows
Workstation 4.0。
The clients have OS Windows
Workstation 4.0.



那古老?

-
干杯
理查德。



That ancient?

--
Cheers
Richard.



这篇关于JavaScript&amp; IE6:onbeforeUnload的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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