HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML ondurationchange Attribute

HTML ondurationchange Attribute

 

 

The durationchange event occurs when the duration data of the specified audio/video is changed. When media is loaded, its duration changes from NaN to actual duration.

 

The following events occur during the loading process:-

 

  • loadstart
  • durationchange
  • loadedmetadata
  • loadeddata
  • progress
  • canplay
  • canplaythrough

 

Used With:-

 

Elements Event
audio durationchange
video durationchange

 

Syntax:-

 

Its syntax is:- < element ondurationchange="your_script" >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML