onended ব্যবহার করুন৷ মিডিয়া যখন এইচটিএমএল-এ শেষ হয়ে যায় তখন স্ক্রিপ্ট চালানোর জন্য HTML-এ অ্যাট্রিবিউট। আপনি মেসেজ যোগ করতে পারেন যেমন "দেখার জন্য ধন্যবাদ", "সাথে থাকুন!", ইত্যাদি।
উদাহরণ
আপনি onended বাস্তবায়ন করতে নিম্নলিখিত কোড চালানোর চেষ্টা করতে পারেন বৈশিষ্ট্য −
<!DOCTYPE HTML>
<html>
<body>
<video width = "300" height = "200" controls onended = "display()">
<source src = "/html5/foo.ogg" type = "video/ogg" />
Your browser does not support the video element.
</video>
<script>
function display() {
alert ("Thank you for watching! Stay tuned!");
}
</script>
</body>
</html>