Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <p id="demo">Move to a new position in the video:</p> <video id="myVideo" width="320" height="176" controls onseeked="myFunction()"> <source src="mov_bbb.mp4" type="video/mp4"> <source src="mov_bbb.ogg" type="video/ogg"> Your browser does not support HTML5 video. </video> <script> function myFunction() { document.getElementById("demo").innerHTML = "You moved to position " + document.getElementById("myVideo").currentTime; } </script> <p>This example demonstrates how to use the "onseeked" 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>