java script how to get the value of innerHtml code example Example: change innerhtml document.getElementById("p1").innerHTML = "New text!";