YouTip LogoYouTip

Prop Audio Ended

# Audio ended Property [![Image 8: Audio Object Reference](#) Audio Object](#) ## Example Check if the audio has finished playing: var x = document.getElementById("myAudio").ended; The output of _x_ will be: true [Try it yourself Β»](#) * * * ## Definition and Usage The ended property returns whether the audio has ended. The audio has ended if the playback position is at the end of the audio. **Note:** This property is read-only. * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The ended property is supported by all major browsers. **Note:** Internet Explorer 8 and earlier versions do not support this property. * * * ## Syntax _audioObject_.ended ## Technical Details | Return Value: | A Boolean value. Returns true if the audio has finished playing. Otherwise, returns false. | | --- | * * Audio Object](#)
← Prop Audio ErrorProp Audio Duration β†’