Code
Execute
<! DOCTYPE html> <html> <head> <title>html tutorial - html5 - html code - html form - In 30Sec by Microsoft Award MVP - | wikitechy onended attribute</title> <base href="../tryit/"> </head> <body> <video width="320" height="240" controls onended="onEnded()"> <source src="hibiscus.mp4" type="video/mp4"> </video> <script> function onEnded() { alert("Thank you for Watching Wikitechy video"); } </script> </body> </html>
Result