how to set div text in javascipt code example Example: javascript set text of div document.getElementById("content").innerHTML = "whatever";