EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

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

 

 

표시:
© 2014 Microsoft