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