The HTML oncuechange attribute is an event handler that triggers a script to execute when the active cue, or subtitle/caption, associated with a media element changes within the <track>
Definition and Usage
➔ It executes JavaScript code when the displayed text cue of the track element is changed, which is typically used for subtitles, captions, or descriptions in video or audio.
➔ Whenever the subtitle queue displayed by the track element changes, the JavaScript function will be called.
Applies to
This attribute can be used on the following element.
| Attribute | Element |
|---|---|
| oncuechange | <track> |