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