+ 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