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
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
