Skip to content
Related Articles
Open in App
Not now

Related Articles

Web Window API | Window menubar property

Improve Article
Save Article
  • Last Updated : 06 Aug, 2022
Improve Article
Save Article

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 menubar 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 1 and above
  • Edge 12 and above
  • Firefox 1 and above
  • Safari 3 and above
  • Opera 15 and above
  • Internet Explorer not supported

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!