Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

networkState property

Gets the current network activity for the element.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.4

 

Syntax

JavaScript

networkstate = object.networkState

 

Property values

Type: number

NETWORK_EMPTY (0)

The element has not yet been initialized. All attributes are in their initial states.

NETWORK_IDLE (1)

A resource is selected, but the network is not actively being used.

NETWORK_LOADING (2)

The browser is attempting to download data.

NETWORK_NO_SOURCE (3)

No media resource could be found.

Standards information

See also

audio element
audio object
media
video element
video object

 

 

Show: