Skip to content
Related Articles

Related Articles

Improve Article

SVG window.statusbar Property

  • Last Updated : 18 Nov, 2020

The SVG window.statusbar property returns the statusbar object through which we can check the visibility.

Syntax:

var sb = window.statusbar

Return value: This property returns the statusbar object.

Example 1:

HTML






<!DOCTYPE html>
<html>
  
<body>
    <center>
        <h1>GeeksforGeeks</h1>
  
        <button onclick="get()">
            Click Here
        </button>
          
        <svg viewBox="0 0 10000 10000" 
            xmlns="http://www.w3.org/2000/svg">
              
            <script type="text/javascript">
                function get() {
                    var g = document.getElementById("g");
                    console.log(window.statusbar);
                }
            </script>
        </svg>
    </center>
</body>
  
</html>

Output:

Example 2:

HTML




<!DOCTYPE html>
<html>
  
<body>
    <center>
        <h1>GeeksforGeeks</h1>
  
        <button onclick="get()">
            Click Here 
        </button>
          
        <div id="g"></div>
          
        <svg viewBox="0 0 1000 1000" 
            xmlns="http://www.w3.org/2000/svg">
              
            <script type="text/javascript">
                function get() {
                    var g = document.getElementById("g");
                      
                    g.innerHTML = "Is it visible? : " 
                        + window.statusbar.visible;
                }
            </script>
        </svg>
    </center>
</body>
  
</html>

Output:

Supported Browsers:

  • Google Chrome
  • Edge
  • Firefox
  • Safari
  • Opera
  • Internet Explorer

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.




My Personal Notes arrow_drop_up
Recommended Articles
Page :