Code
Execute
<!DOCTYPE html> <html> <head> <title>wikitechy HTML onseeked Attribute</title> <base href="../tryit/"> </head> <body> <h1>Wikitechy HTML onseeked Attribute</h1> <video id="wikiVideo" width="300" height="300" controls onseeked="onSeeked()"> <source src="hibiscus.mp4" type="video/mp4"> </video> <script> function onSeeked() { document.getElementById("position").innerHTML = "Position has been moved to " + document.getElementById("wikiVideo").currentTime; } </script> <p id="position">The video moves to a new position :</p> </body> </html>
Result