简体   繁体   English

使用Javascript隐藏/禁用TitleBar Mozilla FireFox

[英]Hide/Disable TitleBar Mozilla FireFox using Javascript

How to disable the Minimize button of FireFox Browser or How to hide titlebar of FireFox Browser. 如何禁用FireFox浏览器的“最小化”按钮或如何隐藏FireFox浏览器的标题栏。 I am using Window.Open to Open Window in fullscreen Mode using javascript 我正在使用Window.Open使用JavaScript在全屏模式下打开窗口

I am afraid this is impossible to do, and rightly so. 恐怕这是不可能的,这是正确的。 I would be pretty annoyed if a webpage tried disable the minimize button of my browser. 如果网页尝试禁用浏览器的最小化按钮,我会很生气。

Actually, it seems to be possible to specify these features. 实际上,似乎可以指定这些功能。 An excerpt from window.open Reference : window.open参考的摘录:

  • dialog can be set to yes or no to indicate whether or not the maximize and minimize buttons will display in the titlebar in Firefox, Mozilla, and Netscape only. 对话框可以设置为是或否,以指示最大化和最小化按钮是否仅在Firefox,Mozilla和Netscape中显示在标题栏中。
  • minimizable can be set to yes or no to indicate whether or not the minimize buttons will display in the titlebar when dialog=yes in Firefox, Mozilla, and Netscape only. 可以将minimizable设置为yes或no,以指示仅在Firefox,Mozilla和Netscape中,当dialog = yes时,最小化按钮是否将显示在标题栏中。 So, just use code like this: 因此,只需使用如下代码:

    var newWin = window.open(' http://www.google.com/ ','google','dialog=yes,minimizable=no'); var newWin = window.open(' http://www.google.com/','google','dialog = yes,minimizable = no');

Anyway, don't overuse this feature – it's designed explicitly with dialogs in mind. 无论如何,请不要过度使用此功能-它的设计明确考虑了对话框。 IMO, combining it with full-screen is kinda dirty. IMO将其与全屏结合使用有点脏。

尝试使用实验性附加组件“隐藏字幕”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM