javascript write html in div code example
Example 1: javascript set text of div
document.getElementById("content").innerHTML = "whatever";
Example 2: How to write inside a div using javascript
document.getElementById('log').innerHTML += '<br>Some new content!';