Easy Tutorial
❮ Prop Select Length Prop Style Marginbottom ❯

HTML DOM Track Object


Track Object

The Track object represents the HTML <track> element.

Accessing a Track Object

You can access the <track> element by using the getElementById() method.

Creating a Track Object

You can create a <track> element using the document.createElement() method.

Track Object Properties

Property Description
default Sets or returns the default state of the track
kind Sets or returns the kind attribute value of the track
label Sets or returns the label attribute value of the track
readyState Returns the current state of the track resource
src Sets or returns the src attribute value of the track
srclang Sets or returns the srclang attribute value of the track
track Returns the TextTrack object, representing the track text data of the track element

Standard Properties and Events

The Track object also supports standard properties and events.


Related Articles

HTML Reference: HTML <track> Tag

❮ Prop Select Length Prop Style Marginbottom ❯