+ 2

what means document and innerHTML in javascript?

26th Aug 2018, 6:56 AM
olbab omer
olbab omer - avatar
3 odpowiedzi
0
Look this exemple: <p id="test"></p> <script> document.querySelector("#test").innerHTML = "Hey this is an innerHTML property"; </script> Put this in your HTML.
5th Sep 2018, 11:24 PM
Mr Genesis
Mr Genesis - avatar
+ 8
The document object basically represents your web page. The innerHTML property sets or returns the HTML content of any element.
26th Aug 2018, 6:59 AM
Mickel
Mickel - avatar
+ 2
thanks
26th Aug 2018, 7:03 AM
olbab omer
olbab omer - avatar