Javascript Reference - HTML DOM Track src Property








The src property sets or gets the src attribute of the track.

The src attribute specifies the URL of the track file.

Browser Support

src Yes 10.0 Yes Yes Yes

Syntax

Return the src property.

var v = trackObject.src

Set the src property.

trackObject.src=URL




Property Values

Value Description
URL Specifies the URL of the track file

Return Value

A String type value representing the URL of the track file.