Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 10
What is innerHTML property
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
+ 7
InnerHTML is a part of DOM
......?
+ 3
The HTML , that could be loaded dynamically, between two tags, like DIV tags š¤
+ 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?";
+ 2
<p id="demo" onclick="myFunction()">Click me to change my HTML content (innerHTML).</p>