Latest web development tutorials

HTML DOM Track label attribute

Track Object Reference Track Objects

Examples

Get text track Tags:

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

x The output is:

English


Definition and Usage

label property sets or returns the label of the track property values.

label attribute describes the text track label / title.


Browser Support

Attributes
label Yes 10.0 Not supported Not supported Yes

grammar

Back label properties:

trackObject.label

Set label properties:

trackObject.label=label

Property Value

value description
label Specifies the text label track / title

technical details

return value: String that represents the text track title / label

Track Object Reference Track Objects