document getelementbyid innerhtml w3schools code example Example: javascript innerhtml document.getElementById("example").innerHTML = "Paragraph changed!";