HTMLTrackElement.src

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

Syntax

var textTrackURL = HTMLTrackElement.src;

Value

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

Example

// coming soon

Specifications

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

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 23Edge Full support YesFirefox Full support 31
Notes
Full support 31
Notes
Notes Setting the src property did not work properly in versions prior to 50.
No support 24 — 30
Disabled
Disabled 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.
IE No support NoOpera Full support 12Safari Full support YesWebView Android Full support YesChrome Android Full support 25Edge Mobile Full support YesFirefox Android Full support 31
Notes
Full support 31
Notes
Notes Setting the src property did not work properly in versions prior to 50.
No support 24 — 30
Disabled
Disabled 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.
Opera Android Full support 12Safari iOS Full support YesSamsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
See implementation notes.
See implementation notes.
User must explicitly enable this feature.
User must explicitly enable this feature.

See also

Document Tags and Contributors

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