禁用还原 [英] Disable the Restore Down

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

问题描述



如何通过Java脚本禁用Internet Explorer中的还原"按钮.



问候,
Basha.

Hi,

how to disable the restore down button in internet explorer through java script.



Regards,
Basha.

推荐答案

如果"restore down"按钮对您来说意味着浏览器窗口的restore/minimize/maximize小部件,那么对您来说是个坏消息.如果窗口确实具有还原/最小化/最大化"按钮,则无法(并且没有理由应该通过JavaScript)禁用该窗口.

您可以在此处通过 window.open [

-MSDN, window.open [ ^ ]
关于,

—MRB
If by any chance "restore down" button means to you the restore/minimize/maximize widget of the browsers window then I have bad news for you. If the window does have a restore/minimize/maximize button it can''t (and there is no reason it should) be disabled via JavaScript.

You can check here what can be done via window.open[^] command. If the documentation can be trusted you can set titlebar=no only under this condition:

"It applies only if the calling application is an HTML Application or a trusted dialog box"

—MSDN, window.open[^]
Regards,

—MRB


这篇关于禁用还原的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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