0

How to autoplay videos on chrome browser?

So I was making a rickroll html file, but I want to be like as soon as you load the file it starts auto playing. But chrome does not allow that for some reason. Any tips?

21st Jan 2021, 6:02 AM
Professionally stupid
Professionally stupid - avatar
1 Respuesta
0
window.onload = () => { document.getElementById('video').play; }
21st Jan 2021, 6:06 AM
Abhay
Abhay - avatar