Prop Audio Networkstate
# Audio networkState Property
[ Audio Object](#)
## Example
Get the current network state of the audio:
var x = document.getElementById("myAudio").networkState;
The value of _x_ is:
1 // Audio is available and the specified resource has been selected, but not using the network
[Try it Yourself Β»](#)
* * *
## Definition and Usage
The networkState property returns the current network state (activity) of the audio.
* * *
## Browser Support

The networkState property is supported by all major browsers.
**Note:** Internet Explorer 8 or earlier versions do not support this property.
* * *
## Syntax
_audioObject_.networkState
## Return Value
| Type | Description |
| --- | --- |
| Number | Represents the current network state of the audio element: * 0 = NETWORK_EMPTY - Audio has not been initialized * 1 = NETWORK_IDLE - Audio is active and has selected a resource, but is not using the network * 2 = NETWORK_LOADING - The browser is downloading data * 3 = NETWORK_NO_SOURCE - No audio source was found |
* * Audio Object](#)
YouTip