HTML Audio/Video DOM Reference
Change the source of the video:
The src property sets or returns the current source of the audio/video.
![]()
The src property is supported in Internet Explorer 10, Firefox, Opera, Chrome, and Safari.
Note: The src property is not supported in Internet Explorer 9 and earlier versions.
Set the src property:
Return the src property:
| Value | Description |
|---|---|
| URL | Specifies the URL of the audio/video source.
Possible values:
|
| Return Value: | A String, the current audio/video source |
|---|
HTML Audio/Video DOM Reference
Your message has been sent to W3Schools.