Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Web Window API | Window menubar property

  • Last Updated : 31 Jul, 2019

In HTML Window.menubar property returns the object of menubar, for which we can check the visibility.


objectReference = window.menubar

Example: This example uses Window.menubar property to check the visibility of menuber object.

<!DOCTYPE html>
        Window menubar property
    <script type="text/javascript">
        function getvisibility() {
                    'visibility').innerHTML =
        <h1 style="color:green;">  
        <h2>Window menubar property</h2>
        <button onclick="getvisibility ();"
            Check visibility
        <p id='visibility'></p>

Click the button:

When the button is clicked:

Supported Browsers: The browsers supported by Window.menubar property are listed below:

  • Google Chrome
  • Edge 12
  • Firefox
  • Safari
  • Opera

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!