Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<p>This example demonstrates how to assign an "onplaying" event to a video element.</p>
<p>Play, pause and then play the video again.</p>
<video controls onplaying="myFunction()">
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>
<script>
function myFunction() {
  alert("The video is now playing");
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onplaying by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:40:01 GMT -->
</html>