Prop Video Autoplay
π
2026-06-19 | π JavaScript
# Video autoplay Property
[ Video Object](#)
## Example
Check if the video starts playing as soon as it is ready:
var x = document.getElementById("myVideo").autoplay;
The output of _x_ will be:
true
[Try it Β»](#)
* * *
## Definition and Usage
The autoplay property sets or returns whether a video should start playing as soon as it is loaded.
This property reflects the HTML