Easy Tutorial
❮ Jsref String Met Table Deletecaption ❯

Track src Attribute

Track Object

Example

Get the URL of the track file:

x output value is:


Definition and Usage

The src attribute is used to set or return the value of the track's src attribute.

The src attribute describes the URL of the track file.


Browser Support

Internet Explorer, Opera, and Chrome support the src attribute.

Note: Firefox, Safari, or Internet Explorer 9 and earlier versions do not support the src attribute.



Syntax

Return the src attribute:

Set the src attribute:

Attribute Values

Value Description
URL Describes the URL of the track file

Technical Details

| Return Value: | String, representing the URL of the track text, returns the actual URL including the protocol part (e.g., http://) | | --- | --- |


More Examples

Example

Modify the URL of the track file:


Related Pages

HTML Reference: HTML <track> src Attribute


❮ Jsref String Met Table Deletecaption ❯