Prev Demo
Ondblclick
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <h2> Double click on the button to open the value</h2> <button ondblclick="myfunction()">Click ME</button> <p id="demo"></p> <p>manideep sudheer</p> <script> function myfunction() { document.getElementById("demo").innerHTML = "Learn tutorials in techfunda"; } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output