+ 1
What is wrong with this code
<!DOCTYPE html> <html> <body> <h1>My First JavaScript</h1> <p>JavaScript can change the content of an HTML element:</p> <button type="button" onclick="myFunction()">Click Me!</button> <p id="demo">This is a demonstration.</p> <script> function myFunction() { document.getElementById("demo").innerHTML = "Hello JavaScript!"; } </script> </body> </html>
11 Answers
+ 6
this code related to html
run on it html format in sl
+ 5
It works perfectly fine...
What's wrong?
+ 4
there is no problem bro ☺
+ 4
where u run this code?
+ 4
bro u need help thats why i create this code for ur understand
why downvote?
+ 3
I'm mistaken and used java it works with java script
0
no output
0
java
- 1
Enter code dabble you have
- 1
Thank you very much
- 1
I understand thank you for help