EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

visibilityState property

Returns the visibility state of a webpage.

This property is read-only.

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

 

 

Mostrar:
© 2015 Microsoft