MDN self-hosted library · e01.org

HTMLTrackElement: track property

HTML DOM

Open notebook · 1 cells web-api-instance-property upstream source

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