如何在IE浏览器中禁用Alt + F4事件? [英] How can I disable Alt+F4 event in IE browser?

查看:297
本文介绍了如何在IE浏览器中禁用Alt + F4事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ctrl + W和Alt + F4命令关闭IE浏览器。
我想禁用此默认操作。我可以使用Ctrl + W命令处理。但我不能用Alt + F4事件。我发现Alt + Keys事件(例如; Alt + Enter,Alt +右箭头,Alt +左​​箭头)无法禁用其默认操作。是否可以在IE浏览器中禁用Alt + Key事件?

Ctrl+W and Alt+F4 command close the IE browser. I want to disable this default action. I can handle with Ctrl+W command. But I can't with Alt+F4 event. I found that Alt+Keys event(eg; Alt+Enter, Alt+Right Arrow, Alt+Left Arrow) can't to disable their default action. Is it possible to disable Alt+Key event in IE browser?

推荐答案

出于明显的安全原因,您绝对无法使用Javascript执行此操作。

You absolutely cannot do this with Javascript, for obvious security reasons.

如果您正在制作使用shdocvw.dll来呈现页面的自助服务终端应用程序,那么您可以选择,但不能从页面本身进行。只有客户才能决定如何处理这些按键,而不是你。

If you are making a kiosk application that uses shdocvw.dll to render pages, then you have options, but you cannot from the page itself. Only the client gets to decide what to do with such keypresses, not you.

这篇关于如何在IE浏览器中禁用Alt + F4事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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