Javascript Reference - HTML DOM Track label Property








The label property sets or gets the label attribute of the track.

The label attribute specifies the label/title of the text track.

Browser Support

label Yes 10.0 Yes Yes Yes

Syntax

Return the label property.

var v = trackObject.label

Set the label property.

trackObject.label=label




Property Values

Value Description
label Set the label/title of the text track

Return Value

A String type value representing the label/title of the text track.