如何使用Java禁用浏览器菜单栏和状态栏? [英] How to Disable the Browser MenuBar and Status Bar using Javascript?

查看:92
本文介绍了如何使用Java禁用浏览器菜单栏和状态栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无论如何,您都无法通过JavaScript做到这一点.唯一的方法是在没有工具栏等的情况下打开一个新窗口,然后关闭旧的窗口,这样做时您可能会在IE 7中收到警告.此外,即使不显示它们,浏览器热键仍将调用该函数.

You can''t do that from JavaScript anyways. The only way is to open a new window without the toolbar, etc and close the old one and you''ll probably get warnings in IE 7 when doing that. Also, the browser hot keys will still invoke the function even without them displayed.

推荐答案

尝试一下.
Try this.
window.open("http://www.yourURL.com", "Title", "width=550,height=400,toolbar=no,location=no,directories=no,statusbar=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no")


它只是设置控件的可见性.功能未锁定.


It just sets the control''s visibility. Functions are not locked.


这篇关于如何使用Java禁用浏览器菜单栏和状态栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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