Video currentSrc eigenschap
Definitie en gebruik
currentSrc
Deze eigenschap retourneert de huidige URL van de video.
If no video is set, an empty string is returned.
Opmerking:Deze eigenschap is alleen lezen.
Tip:Gebruik a.u.b. src-eigenschap Stel de URL van het videobestand in.
Voorbeeld
Ophalen van de huidige URL van de video:
var x = document.getElementById("myVideo").currentSrc;
Syntax
videoObject.currentSrc
Technical details
Return value: |
String value, representing the current video URL. Returns the entire URL, including the protocol (such as http://). If no video is set, an empty string is returned. |
---|
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 9.0 | Support | Support | Support |