A RetroSearch Logo

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

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/enter_event below:

TextTrackCue: enter event - Web APIs

TextTrackCue: enter event

Baseline Widely available

The enter event fires when a cue becomes active. In the case of subtitles or a caption this is when it displays over the media.

Syntax

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

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

onenter = (event) => { }
Event type

A generic Event with no added properties.

Example

In the following example, cue prints to the console when it is the active cue.

cue.addEventListener("enter", (event) => {
  console.log("Cue 1 has displayed");
});
Specifications Browser compatibility

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