javascript dom manipulation examples to change the content on click4 Example: change innerhtml document.getElementById("p1").innerHTML = "New text!";