Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<video id="myVideo" width="320" height="240">
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>
<p>Click the button to add video controls.</p>
<p><strong>Note:</strong> In Internet Explorer, you must move the mouse pointer over the video to see the controls.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
  document.getElementById("myVideo").controls = true;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_video_controls by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 15:53:13 GMT -->
</html>