innerHTML use | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

innerHTML use

Does this property makes the changes only in the output or does it have any effect on the main html code

10th Sep 2019, 9:08 AM
Tanishq De
1 Answer
+ 2
 innerHTML is an Element property in JS that is used to get or set the HTML or XML markup contained within the element. innerHTML property can also be used to examine current HTML source of the page including any changes that have been made since the page was first loaded by the browser.
10th Sep 2019, 9:31 AM
KfirWe
KfirWe - avatar