write on a div with js code example Example: How to write inside a div using javascript document.getElementById('log').innerHTML += '<br>Some new content!';