This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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

See also

Related pages

Attributions