মিডিয়া (ভিডিও/অডিও) ডেটা লোড হলে স্ক্রিপ্ট চালাতে onloadeddata ইভেন্ট অ্যাট্রিবিউট ব্যবহার করা হয়।
উদাহরণ
ভিডিও লোড হলে অ্যালার্ট বক্স দেখানোর উদাহরণ:
<!DOCTYPE html> <html> <body> <video controls onloadeddata = "display()"> <source src = "/html5/foo.ogg" type = "video/ogg" /> <source src = "/html5/foo.mp4" type = "video/mp4" /> Your browser does not support the video element. </video> <script> function display() { alert("Loaded!"); } </script> </body> </html>