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