+ 2
what means document and innerHTML in javascript?
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.
+ 8
The document object basically represents your web page.
The innerHTML property sets or returns the HTML content of any element.
+ 2
thanks