hidden property
Returns whether a webpage is visible.
This property is read-only.
![]() |
Syntax
| JavaScript |
|---|
ptr = object.hidden |
Property values
Type: boolean
Shows the status whether a page is visible or not.
| Value | Condition |
|---|---|
|
The page is hidden |
|
The page is visible. |
Standards information
Remarks
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.
See also
