Skip to content
Related Articles

Related Articles

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

In Web API Window.statusbar property returns the object of statusbar, for which we can check the visibility.

Syntax:

objectReference = window.statusbar

Example: Check the visibility




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

Output :
Before:

After:

Supported Browsers:

  • Google Chrome
  • Edge 12
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Recommended Articles
Page :