Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

stop video javascript

<video id="video">
  <source src="movie.mp4" type="video/mp4">
</video>
<script>
  const video = document.querySelector("#video");

video.pause();
video.currentTime = 0;
</script>
 
PREVIOUS NEXT
Tagged: #stop #video #javascript
ADD COMMENT
Topic
Name
1+8 =