Code
Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy oncanplay attribute</title> </head> <body> <video width="320" height="240" controls oncanplay="onCanPlay()"> <source src="hibiscus.mp4" type="video/mp4"> </video> <script> function onCanPlay() { alert("Wikitechy Video Can Play Now!"); } </script> </body> </html>
Result