&n"/> &n">

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
WBOYforward
2023-08-25 15:01:161162browse

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>

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete