What is ondblclick event in JavaScript?

JavascriptWeb DevelopmentFront End Technology

Use the ondblclick event to generate an event on double click.

Example

You can try to run the following code to learn how to work with ondblclick event in JavaScript −

<html>
   <head>
      <script>
         <!--
            function sayHello() {
               alert("Hello World")
            }
         //-->
      </script>
   </head>
   <body>
      <p ondblclick="sayHello()">Double Click me</p>
   </body>
</html>
raja
Published on 16-Feb-2018 10:21:42
Advertisements