+ 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>

15th Oct 2017, 8:34 PM
‎محمد النزهي‎
‎محمد النزهي‎ - avatar
11 Answers
+ 6
this code related to html run on it html format in sl
15th Oct 2017, 9:07 PM
Scooby
Scooby - avatar
+ 5
It works perfectly fine... What's wrong?
15th Oct 2017, 8:49 PM
Ledio Deda
Ledio Deda - avatar
+ 4
there is no problem bro ☺
15th Oct 2017, 8:53 PM
Scooby
Scooby - avatar
+ 4
where u run this code?
15th Oct 2017, 8:58 PM
Scooby
Scooby - avatar
+ 4
bro u need help thats why i create this code for ur understand why downvote?
15th Oct 2017, 9:17 PM
Scooby
Scooby - avatar
+ 3
I'm mistaken and used java it works with java script
15th Oct 2017, 9:09 PM
‎محمد النزهي‎
‎محمد النزهي‎ - avatar
0
no output
15th Oct 2017, 8:57 PM
‎محمد النزهي‎
‎محمد النزهي‎ - avatar
0
java
15th Oct 2017, 9:06 PM
‎محمد النزهي‎
‎محمد النزهي‎ - avatar
- 1
Enter code dabble you have
15th Oct 2017, 9:07 PM
‎محمد النزهي‎
‎محمد النزهي‎ - avatar
- 1
Thank you very much
15th Oct 2017, 9:08 PM
‎محمد النزهي‎
‎محمد النزهي‎ - avatar
- 1
I understand thank you for help
15th Oct 2017, 9:16 PM
‎محمد النزهي‎
‎محمد النزهي‎ - avatar