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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
src | Chrome Full support 23 | Edge Full support 12 | Firefox
Full support
31
| 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
| 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
- The interface defining it,
HTMLTrackElement
. <track>