Returns whether a webpage is visible.
This property is read-only.
ptr = object.hidden
Shows the status whether a page is visible or not.
The page is hidden
The page is visible.
The Visibility API provides Web applications with the means to programmatically determine the current visibility of a page and be notified of visibility changes.
You can use this property to determine whether a page is visible or not. If it is not visible, you can throttle page activity and resource usage to create more power- and CPU-efficient applications.
This is a property of the document object. You can also use the visibilityState property to learn more about the page visibility state and also use the visibilitychanged event to determine when a state changes.