onseeked অ্যাট্রিবিউটটি ব্যবহারকারী অডিও বা ভিডিওতে নতুন একটি পজিশনে স্কিপ করলে বা সরলে একটি স্ক্রিপ্ট এক্সিকিউট করে।
উদাহরণ
নিচের কোডটি চালিয়ে onseeked অ্যাট্রিবিউটের কাজ দেখুন:
<!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>