javascript set the text of a div code example Example: javascript set text of div document.getElementById("content").innerHTML = "whatever";