autoplay
Property of dom/HTMLMediaElementdom/HTMLMediaElement
Syntax
var result = element.autoplay;
element.autoplay = value;
Notes
Remarks
You can use the autoplay attribute rather than script to force the audio or video to play. The presence of the autoplay attribute, regardless of assigned value, in either the audio or video element equals true (for example, <audio autoplay=""> is true).
Syntax
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.7
See also
Related pages
- mediamedia
audio
audio
video element
video object
- autobufferautobuffer
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]