Web/API/HTMLTrackElement/src

From Get docs


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 StandardThe definition of 'HTMLTrackElement.src' in that specification. Living Standard No change from HTML5
HTML5The definition of 'HTMLTrackElement.src' in that specification. Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
src Chrome

Full support 23

Edge

Full support 12

Firefox 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 No

Opera

Full support 12

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support 25

Firefox 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 12

Safari iOS

Full support Yes

Samsung 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