Get the URL of the track file:
The result of x could be:
The src property sets or returns the value of the src attribute of the track.
The src attribute specifies the URL of the track file.
The src property is supported Internet Explorer, Opera, and Chrome.
Note: The src property is not supported in Firefox, Safari or Internet Explorer 9 and earlier versions.
Return the src property:
Set the src property:
Value | Description |
---|---|
URL | Specifies the URL of the track file |
Return Value: | A String, representing the URL of the track file. Returns the entire URL, including the protocol (like http://) |
---|
Change the URL of the track file:
HTML reference: HTML <track> src attribute