0

In this post we will teach you. (JavaScript Onclick Button) .Copy the code below. Then check out our blog through the online HTML editor. Then use the code in your website. If there is a problem with the code, ask your question in the comment box below.

<!--DOCTYPE html--> <html> <body> <h1>JavaScript Onclick Button </h1> <button onclick="myFunction()">Click me</button> <p id="demo"></p> <script> function myFunction() { document.getElementById("demo").innerHTML = "Hello World"; } </script> </body> </html>

Post a Comment

 
Top