<script> function myFunction() { alert('The video is now playing'); } </script> <video onplaying="myFunction()">