Document.write



examples/js/document_write.html
First line
<script>

document.write("<h1>Hello World</h1>");

</script>
Last line