const video = document.querySelector("video");
video.addEventListener("timeupdate", (event) => {
console.log("The currentTime attribute has been updated. Again.");
});HTMLMediaElement: timeupdate event / notebook
HTMLMediaElement: timeupdate event
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const video = document.querySelector("video");
video.ontimeupdate = (event) => {
console.log("The currentTime attribute has been updated. Again.");
};