Track label Property

Track 对象参考手册Track Object

Example

Get the text track label:

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

xThe output result is:

English


Definition and Usage

The label property is used to set or return the value of the label attribute of the track.

The label property describes the label/title of the text track.


Browser Support

Property
label Yes 10.0 Not supported Not supported Yes

Syntax

Return the label property:

trackObject.label

Set the label property:

trackObject.label=label

Property Values

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

Technical Details

Return Value: A string, representing the title/label of the track text

Track 对象参考手册Track Object

Other Extensions