YouTip LogoYouTip

Prop Video Currentsrc

# Video currentSrc Property [![Image 8: Video Object Reference](#) 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 ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) 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](#)
← Prop Video CurrentsrcProp Video Controls β†’