Audio readyState Property
Get the current ready state of the audio:
document.getElementById("demo").innerHTML = x;
The result of x could be:
Try it yourself »
Definition and Usage
The readyState property returns the current ready state of the audio.
The ready state indicates if the audio is ready to play or not.
Note: This property is read-only.
The readyState property is supported in all major browsers.
Note: This property is not supported in Internet Explorer 8 and earlier.
|Number||Represents the ready state of the audio element:
Thank You For Helping Us!
Your message has been sent to W3Schools.