HTML DOM Track Objects
Track Objects
Track objects are new HTML5.
Track object represents the HTML <track> element.
Object Access Track
You can access the <track> element using the getElementById ():
var x = document.getElementById ( "myTrack");
Create Track Objects
You can use document.createElement () method to create a <track> element:
var x = document.createElement ( "TRACK");
Track Object Properties
Attributes | description |
---|---|
default | Sets or returns the default state of the track |
kind | Sets or returns the kind attribute value track |
label | Sets or returns the label of the track property values |
readyState | It returns the status of the current orbit resource |
src | Sets or returns the src attribute value of the track |
srclang | Sets or returns the property value srclang track |
track | Back TextTrack object that represents the track elements of text data track |
Standard properties and events
Track objects also supports standard attributes and events .
related articles
HTML Reference Manual: HTML <Track> tag