We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS


The HTMLTrackElement.src property reflects the value of the <track> element's src attribute, which indicates the URL of the text track's data.


var textTrackURL = HTMLTrackElement.src;


A DOMString object containing the URL of the text track data.


// coming soon


Specification Status Comment
HTML Living Standard
The definition of 'HTMLTrackElement.src' in that specification.
Living Standard No change from HTML5
The definition of 'HTMLTrackElement.src' in that specification.
Recommendation Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support23 Yes


24 — 302

No12 Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support2323 Yes


24 — 302

12 Yes ?

1. Setting the src property did not work properly in versions prior to 50.

2. From version 24 until version 30 (exclusive): this feature is behind the media.webvtt.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

See also

Document Tags and Contributors

Contributors to this page: fscholz, Sheppy
Last updated by: fscholz,