Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

visibilityState property

Returns the visibility state of a webpage.

This property is read-only.

Internet Explorer 10

 

Syntax

JavaScript
ptr = object.visibilityState

 

Property values

Type: DOMString

A value corresponding to one of the following:

ValueCondition
Document.PAGE_HIDDEN ("hidden")

The page is hidden.

Document.PAGE_PREVIEW ("preview")

The page is in a preview state.

Document.PAGE_VISIBLE ("visible")

The page is visible.

 

Standards information

Remarks

Use the visibilitychange event to track changes to the visibility state.

See also

document
hidden
visibilitychange

 

 

Show:
© 2015 Microsoft