Prop Video Currentsrc
# Video currentSrc Property
[ Video Object](#)
## Example
Get the URL of the current video:
var x = document.getElementById("myVideo").currentSrc;
_x_ output is similar to:
https://www.example.com/try/demo_source/mo-tt-11.mp4
[Try it Β»](#)
* * *
## Definition and Usage
The currentSrc property returns the URL of the current video.
If the audio/video is not set, it returns an empty string.
**Note:** This property is read-only.
**Tip:** Use the (#) property to set the URL of the video file.
* * *
## Browser Support

The currentSrc property is supported by all major browsers.
**Note:** Internet Explorer 8 and earlier versions do not support this property.
* * *
## Syntax
_videoObject_.currentSrc
## Technical Details
| Return Value: | A string representing the current URL of the video, returning the absolute URL including the protocol part (e.g., http://). If the video is not set, it returns an empty string. |
| --- |
* * Video Object](#)
YouTip