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
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.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
src
|
Chrome
Full support 23 |
Edge
Full support 12 |
Firefox Full support 31 Full support 31 Notes' Setting the Disabled' From version 24 until version 30 (exclusive): this feature is behind the |
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 Full support 31 Notes' Setting the Disabled' From version 24 until version 30 (exclusive): this feature is behind the |
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>
HTMLTrackElement.src by Mozilla Contributors is licensed under CC-BY-SA 2.5.