Firefox Tomorrow

web api instance property

HTMLTrackElement: track property

View on MDN ↗

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

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

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also