W3cubDocs

/DOM

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

var textTrackURL = HTMLTrackElement.src;

Value

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

Example

// coming soon

Specifications

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

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/src