how to change text of div in javascript

JavaScript
document.getElementById("content").innerHTML = "whatever";

Source

Also in JavaScript: