set inner html of element code example Example: javascript innerhtml document.getElementById("example").innerHTML = "Paragraph changed!";