VOOZH about

URL: https://www.geeksforgeeks.org/html/html-dom-audio-ended-property/

⇱ HTML DOM Audio ended Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML DOM Audio ended Property

Last Updated : 22 Jun, 2023

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. 

Syntax:

audioObject.ended

The below program illustrates the Audio ended Property: 

Example: Finding out if the audio has ended. 

Output:

👁 Image
 

Supported Browsers: The browser supported by HTML DOM Audio ended Property are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Apple Safari
Comment
Article Tags: