A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/TextTrack/cuechange_event below:

TextTrack: cuechange event - Web APIs

TextTrack: cuechange event

Baseline Widely available

The cuechange event fires when a TextTrack has changed the currently displaying cues. The event is fired on both the TextTrack and the HTMLTrackElement in which it's being presented, if any.

Syntax

Use the event name in methods like addEventListener(), or set an event handler property.

addEventListener("cuechange", (event) => { })

oncuechange = (event) => { }
Event type

A generic Event with no added properties.

Examples

You can set up a listener for the cuechange event on a TextTrack using the addEventListener() method:

track.addEventListener("cuechange", () => {
  const cues = track.activeCues; // array of current cues
  // …
});

Or you can set the oncuechange event handler property:

track.oncuechange = (event) => {
  let cues = track.activeCues; // array of current cues
};
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4