<button onclick="enableLoop()" type="button">Enable loop</button> <button onclick="disableLoop()" type="button">Disable loop</button> <button onclick="checkLoop()" type="button">Check loop status</button> <br> <video id="video1" controls="controls"> <source src="/statics/demosource/mov_bbb.mp4" type="video/mp4"> <source src="/statics/demosource/mov_bbb.ogg" type="video/ogg"> Your browser does not support HTML5 video. </video> <script> myVid=document.getElementById("video1"); function enableLoop() { myVid.loop=true; myVid.load(); } function disableLoop() { myVid.loop=false; myVid.load(); } function checkLoop() { alert(myVid.loop); } </script> <p>Video courtesy of <a href="http://www.bigbuckbunny.org/" target="_blank">Big Buck Bunny</a>.</p>