The Window.menubar
property returns the menubar
object, whose visibility can be checked.
Syntax
objRef = window.menubar
Example
The following complete HTML example demonstrates how the visible
property of the menubar
object is used.
<html> <head> <title>Various DOM Tests</title> <script> var visible = window.menubar.visible; </script> </head> <body> <p>Various DOM Tests</p> </body> </html>
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'Window.menubar' in that specification. |
Living Standard | |
HTML5 The definition of 'Window.menubar' in that specification. |
Recommendation |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.