what is the innerhtml property in javascript code example
Example 1: change innerhtml
document.getElementById("p1").innerHTML = "New text!";
Example 2: javascript innerhtml
document.getElementById("example").innerHTML = "Paragraph changed!";
document.getElementById("p1").innerHTML = "New text!";
document.getElementById("example").innerHTML = "Paragraph changed!";