HTMLTrackElement: track property

The track read-only property of the HTMLTrackElement interface returns a TextTrack object corresponding to the text track of the <track> element.

Value

A TextTrack object.

Example

js
const trackElement = document.getElementById("exampleTrack");
console.dir(trackElement.track);

Specifications

Browser compatibility

See also