how to set innerhtml of <a> tag javascript code example Example: javascript innerhtml document.getElementById("example").innerHTML = "Paragraph changed!";