+ 4

How to use java script with html?

Give me a short program so I can understand better.a nd it's explanation.if possible.

28th Jun 2019, 4:08 PM
Vivek Kumar
Vivek Kumar - avatar
4 Antworten
+ 9
U should embed the js into html file.... https://www.w3schools.com/html/html_scripts.asp Try this
28th Jun 2019, 4:14 PM
Sujithra
+ 2
<DOCTYPE html> <html> <head> <title></title> </head> <body> <div id= "testing"> </div> <script type="text/Javascript"> var object = document.getElementById("testing");object.innerHTML="hello world!"; </script> </body> </html> may be this could be of help to you.
28th Jun 2019, 4:39 PM
Nwankwo Valentine
Nwankwo Valentine - avatar
+ 2
Pls try that one thanks for your notification!!
28th Jun 2019, 4:39 PM
Nwankwo Valentine
Nwankwo Valentine - avatar
28th Jun 2019, 5:18 PM
Maxim Balakirev
Maxim Balakirev - avatar