ondurationchange event
Occurs when the IHTMLMediaElement::duration attribute is updated.
![]() ![]() |
Syntax
| HTML Attribute | <element ondurationchange = "handler(event)"> |
|---|---|
| Event Property | object.ondurationchange = handler; |
| attachEvent Method | object.attachEvent("ondurationchange", handler) |
| addEventListener Method | object.addEventListener("durationchange", handler, useCapture) |
Event information
| Synchronous | No |
|---|---|
| Bubbles | No |
| Cancelable | No |
Event handler parameters
- pEvtObj [in]
-
Type: Event
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.12
Remarks
Use the IHTMLMediaElement::duration property to determine the new duration of the clip.
This event occurs immediately after onloadstart and before onloadedmetadata.
To invoke this event, do one of the following:
- Load a media resource.
See also
- Reference
- onloadedmetadata
- ontimeupdate
Build date: 11/12/2012

