HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Track Object : Get the label of the text track
The label property sets or returns the value of the label attribute of the track.
The label attribute specifies the label/title of the text track.
The title of the text track is used by the browser when listing available text tracks.
Property | |||||
---|---|---|---|---|---|
label | Yes | 10.0 | Not supported | Not supported | Yes |
Return the label property:
Set the label property:
Value | Description |
---|---|
label | Specifies the label/title of the text track |
Return Value: | A String, representing the label/title of the text track |
---|
Set the label of text track:
document.getElementById("myTrack").label = "Norwegian";
HTML reference: HTML <track> label attribute
❮ Track Object