THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Track Object


Track Object

The Track Object is new in HTML5.

The Track object speaks to a HTML <track> element.

Access a Track Object

You can get to a <track> component by utilizing getElementById():

var x = document.getElementById("myTrack");

Create a Track Object

You can make a <track> component by utilizing the document.createElement() method:

var x = document.createElement("TRACK");

Track Object Properties

Property Description
default Sets or returns the default condition of the track
kind Sets or returns the estimation of the caring quality of the track
label Sets or returns the estimation of the name trait of the track
readyState Returns the present condition of the track resource
src Sets or returns the estimation of the src trait of the track
srclang Sets or returns the estimation of the srclang trait of the track
track Returns a TextTrack object speaking to the track component's content track data

Standard Properties and Events


Related Pages

HTML reference: HTML <track> tag