HTML DOM Track object
Track object
The Track object represents the HTML-lt;track-and-gt; element.
Access the Track object
You can access the element by using getElementById():
Create a Track object
You can use the document.createElement() method to create the element of the .lt;track:
Track object properties
Property | Describe |
---|---|
default | Set or return the default state of the track |
kind | Set or return the track's kind property value |
label | Set or return the label property value of the track |
readyState | Returns the status of the current track resource |
Src | Set or return the track's src property value |
srclang | Set or return the srclang property value of the track |
track | Returns the TextTrack object, which represents track text data for the track element |
Standard properties and events
Track objects also support standard properties and events.
Related articles
HTML Reference Manual: HTML slt;track.gt; Tags