HTML | DOM Audio ended Property
The Audio ended property is used for returning whether the playback of the audio has ended or not. When the playback position is at the end of the audio, we consider the audio has ended.
The Audio ended property returns a boolean true if the audio has ended, else it returns false. The Audio ended property is a read-only property.
Below program illustrates the Audio ended Property:
Example: Finding out if the audio has ended.
- Before clicking the button:
- After clicking the button:
Supported Browsers: The browser supported by HTML | DOM Audio ended Property are listed below:
- Google Chrome
- Internet Explorer
- Apple Safari