Use the onseeking attribute to indicate that searching is active in the HTML video.
<!DOCTYPE html> <html> <body> <video controls onseeking = "display()"> <source src = "/html5/foo.ogg" type = "video/ogg" /> <source src = "/html5/foo.mp4" type = "video/mp4" /> Your browser does not support the video element. </video> <script> function display() { alert("Seeking starts!"); } </script> </body> </html>
The above is the detailed content of When the search attribute is set to true, it means that a script is executed when the search activity in HTML is in progress.. For more information, please follow other related articles on the PHP Chinese website!