+ 4

Please , i went details explanation about .innerHTML in js.

Decument.innerHTML

18th Jun 2019, 8:21 PM
YAKUBU IBRAHIM
YAKUBU IBRAHIM - avatar
3 Réponses
+ 17
Here you can find some information about it with examples: https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML
19th Jun 2019, 6:59 PM
Igor Makarsky
Igor Makarsky - avatar
+ 2
It changes an elements text inside. Example: HTML: <div id = "d"></div> JS: document.getElementById("d").innerHTML = "changed" HTML after JS runs: <div id = "d">changed</div>
18th Jun 2019, 8:27 PM
Airree
Airree - avatar