Skip to content
Related Articles

Related Articles

Web Window API | Window toolbar property
  • Last Updated : 31 Jul, 2019

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

Syntax:

objectReference = window.toolbar

Example: Check the visibility




<!DOCTYPE html>
<html>
  
<head>
  
    <title>
        Window toolbar property
    </title>
  
    <script type="text/javascript">
        function getvisibility() {
  
            document.getElementById(
                    'visibility').innerHTML =
                window.toolbar.visible;
  
        }
    </script>
  
</head>
  
<body>
    <center>
  
        <h1 style="color:green;">  
                GeeksForGeeks  
            </h1>
  
        <h2>Window toolbar property</h2>
        <button onclick="getvisibility ();"
                id="btn">
          Check visibility
      </button>
        <p id='visibility'></p>
    </center>
</body>
  
</html>

Output:
Click the button:

When the button is clicked:

Supported Browsers:

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

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.




My Personal Notes arrow_drop_up
Recommended Articles
Page :