- getElementById
- innerHTML
getElementById and innerHTML
examples/javascript/get_element_by_id.html
<div id="text"></div> <script> var field = document.getElementById('text'); field.innerHTML = "Hello World"; </script>
<div id="text"></div> <script> var field = document.getElementById('text'); field.innerHTML = "Hello World"; </script>