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

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
srcChrome Full support 23Edge Full support 12Firefox 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 25Firefox 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 Full support 1.5

Legend

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

See also