currentSrc
Property of dom/HTMLMediaElementdom/HTMLMediaElement
Syntax
var result = element.currentSrc;
element.currentSrc = value;
Notes
Remarks
- currentSrc returns an empty string if a media resource has not been specified.
- In some browsers, currentSrc will return null if the browser hasn’t yet determined which of the sources (if any) it’s going to play.
Syntax
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.2
See also
Related pages
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]