Open In App

SVG Document.hidden Property

Last Updated : 30 Mar, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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:


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads