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

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.