<div id="whatever">hello one</div> <script> document.getElementById("whatever").innerHTML += " hello two"; </script>