HTMLTrackElement: label property - Web APIs | MDN
Value
A string.
Example
js
const trackElement = document.getElementById("exampleTrack");
console.log(`Track's label: ${trackElement.label}`);
trackElement.label = "Updated label";
Specifications
| Specification |
|---|
| HTML # dom-track-label |