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