SVG Document.hidden Property
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" <script> console.log("hidden:", document.hidden) </script> </svg></body> </html> |
Output:





Please Login to comment...