অনসিকড অ্যাট্রিবিউটটি একটি স্ক্রিপ্ট কার্যকর করে যখন ব্যবহারকারী এড়িয়ে যায় বা অডিও বা ভিডিওতে একটি নতুন অবস্থানে চলে যায়।
উদাহরণ
অনসিকড অ্যাট্রিবিউট −
বাস্তবায়ন করতে আপনি নিম্নলিখিত কোডটি চালানোর চেষ্টা করতে পারেন<!DOCTYPE html> <html> <body> <h2 id = "test">Play</h2> <video id = "myid" width = "320" height = "176" controls onseeked = "myFunction()"> <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 myFunction() { document.getElementById("test").innerHTML = "Current position: " + document.getElementById("myid").currentTime; } </script> </body> </html>