Prev Demo
Javascript With The HTML Buttons
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Javascript with the buttons</title> </head> <body> <h1>HTML Javascript</h1> <p>Click on the button to open the Text</p> <button type="button" onclick="myJava()">Click Me!</button> <p id="demo"></p> <script> function myJava() { document.getElementById("demo").innerHTML = "Welcome To JavaScript!"; } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output