Home > Web Front-end > HTML Tutorial > When the search attribute is set to true, it means that a script is executed when the search activity in HTML is in progress.

When the search attribute is set to true, it means that a script is executed when the search activity in HTML is in progress.

WBOY
Release: 2023-08-25 15:01:16
forward
1161 people have browsed it

When the search attribute is set to true, it means that a script is executed when the search activity in HTML is in progress.

Use the onseeking attribute to indicate that searching is active in the HTML video.

Example

When the Seeking attribute is set to true, you can try running the following code to execute a script indicating that searching is active in HTML -
<!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>
Copy after login

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!

source:tutorialspoint.com
Previous article:How to specify the number of visible options in