Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>Mouse Events</h1> <h2>The detail Property</h2> <p>Click the button to display the number of clicks that happened in a short time.</p> <button onclick="myFunction(event)">Click count:</button> <p id="demo"></p> <script> function myFunction(event) { let num = event.detail; document.getElementById("demo").innerHTML = num; } </script> </body> </html>