Audio ended Property

❮ Audio Object

Example

Find out if the audio has ended:

var x = document.getElementById("myAudio").ended;
Try it Yourself »

Description

The ended property returns whether the playback of the audio has ended.

An audio has ended when the playback position is at the end of the audio.

Note: This property is read-only.


Browser Support

Property
ended Yes Yes Yes Yes Yes

Syntax

audioObject.ended

Technical Details

Return Value: A Boolean, returns true if the playback has ended, otherwise it returns false

❮ Audio Object
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.