Skip to content
Related Articles
Open in App
Not now

Related Articles

SVG Document.hidden Property

Improve Article
Save Article
  • Last Updated : 30 Mar, 2022
Improve Article
Save Article

The SVG Document.hidden property returns the boolean value for the check if the page is hidden or not.

Syntax:

var boolean = document.hidden

Return value: This property returns the boolean value if the page is hidden or not.

Example:

HTML




<!DOCTYPE html>
<html>
  
<body>
    <svg width="350" height="500" 
        xmlns="http://www.w3.org/2000/svg">
          
        <script>
            console.log("hidden:", document.hidden)
        </script>
    </svg>
</body>
  
</html>

Output:

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!