innerHTML

document.getElementById("demo").innerHTML = "Paragraph changed!";