简体   繁体   中英

Hide/Disable TitleBar Mozilla FireFox using Javascript

How to disable the Minimize button of FireFox Browser or How to hide titlebar of FireFox Browser. I am using Window.Open to Open Window in fullscreen Mode using 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 :

  • 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.
  • 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. So, just use code like this:

    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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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