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