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 |
---|---|---|
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
- The interface defining it,
HTMLTrackElement
. <track>