examples/javascript/get_element_by_id.html
<div id="text"></div>

<script>
var field = document.getElementById('text');
field.innerHTML = "Hello World";
</script>