<script> function myFunction() { alert('Downloading video'); } </script> <video onprogress="myFunction()">