Run
Back to
HTML onstalled Event Attribute
<!DOCTYPE html> <html> <body> <video controls onstalled="myFunction()"> <source src="sample.mp4" type="video/mp4"> Your browser does not support HTML5 video. </video> <script> function myFunction() { alert("EXAMPLE: Data of this media not available"); } </script> </body> </html>