HTMLTrackElement: track property
HTML DOM
HTML DOM
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
Browser compatibility
See also
- HTMLTrackElement
- textTrack
- track