<!DOCTYPE html> <html> <body> <video id="myVideo" width="320" height="176" controls onloadeddata="myFunction()"> <source src="https://www.sample-videos.com/video321/mp4/240/big_buck_bunny_240p_2mb.mp4" type="video/mp4"> <source src="https://www.sample-videos.com/video321/mp4/240/big_buck_bunny_240p_2mb.mp4" type="video/ogg"> Your browser does not support HTML5 video. </video> <p>Play the video:</p> <script> function myFunction() { alert("Data is loaded"); } </script> <p>This example demonstrates how to use the "onloadeddata" attribute on a VIDEO element.</p> <p>Video courtesy of <a href="https://www.bigbuckbunny.org/" target="_blank">Big Buck Bunny</a>.</p> </body> </html>