X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Audio ended Property

Audio Object Reference Audio Object

Example

Find out if the audio has ended:

var x = document.getElementById("myAudio").ended;

The result of x could be:

true

Try it yourself »


Definition and Usage

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

Internet Explorer Firefox Opera Google Chrome Safari

The ended property is supported in all major browsers.

Note: This property is not supported in Internet Explorer 8 and earlier versions.


Syntax

audioObject.ended

Technical Details

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


Audio Object Reference Audio Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook