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:
<!DOCTYPE html>
<html>
<body>
<svg width="350" height="500"
xmlns="https://www.w3.org/2000/svg">
<script>
console.log("hidden:", document.hidden)
</script>
</svg>
</body>
</html>
Output: