change innerhtml

HTML
document.getElementById("p1").innerHTML = "New text!";
Source

Also in HTML: