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

JavaScript
var textTrackURL = HTMLTrackElement.src;

Value

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

Example

JavaScript
// coming soon

Specifications

Specification Status Comment
WHATWG 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

Feature Chrome Firefox (Gecko)[1] Internet Explorer Opera Safari
Basic support (Yes) 24 (24) ? ? ?
Feature Android Firefox Mobile (Gecko) Firefox OS (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) 24.0 (24) (Yes) ? (Yes) (Yes)

[1] Until Firefox 50, the src property is settable, but the change does not get handled properly. Starting in Firefox 50, existing track data is properly disposed of, new track data is loaded and put into effect, and so forth.

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/htmltrackelement/src

HTML HTML DOM HTMLTrackElement Property Reference src Web WebVTT