What is innerHTML property | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 10

What is innerHTML property

7th Jul 2019, 12:38 PM
Priya Sharma
Priya Sharma - avatar
5 Respostas
+ 13
TheĀ innerHTML propertyĀ is part of the Document Object Model (DOM) that allows Javascript code to manipulate a website being displayed.Ā  http://jsfiddle.net/mQMVc/ https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML
7th Jul 2019, 12:40 PM
MsJ
MsJ - avatar
+ 7
InnerHTML is a part of DOM ......?
7th Jul 2019, 1:54 PM
Priya Sharma
Priya Sharma - avatar
+ 3
The HTML , that could be loaded dynamically, between two tags, like DIV tags šŸ¤—
8th Jul 2019, 4:08 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 2
The innerHTML property sets or returns the HTML content (inner HTML) of an element. Example : document.getElementById("myP").innerHTMLĀ =Ā "Hello Dolly."; document.getElementById("myDIV").innerHTMLĀ =Ā "How are you?";
7th Jul 2019, 1:09 PM
Foued Raissi
Foued Raissi - avatar
+ 2
<p id="demo" onclick="myFunction()">Click me to change my HTML content (innerHTML).</p>
2nd Mar 2020, 6:37 AM
Hector de Hoyos
Hector de Hoyos - avatar