<html>
<body>
<p>本例使用 addEventListener() 方法将 "seeked" 事件附加到 video 元素。</p>
<p>请移动到视频中的新位置。</p>
<video controls id="myVideo">
<source src="/i/photo/shanghai.mp4" type="video/mp4">
Your browser does not support HTML5 video.
</video>
<script>
document.getElementById("myVideo").addEventListener("seeked", myFunction);
function myFunction() {
alert("Seek operation completed!");
}
</script>
</body>
</html>