Skip to content
Related Articles

Related Articles

SVG Document.hidden Property
  • Last Updated : 03 Nov, 2020

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
Recommended Articles
Page :