<html>
<body>
<h1>The Document Object</h1>
<h2>The write() Method</h2>
<h2>The Lorem Ipsum Passage</h2>
<p>This is Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<p>Using document.write() after a document is loaded, deletes all existing HTML:</p>
<button type="button" onclick="myFunction()">Click me!</button>
<script>
function myFunction() {
document.write("Hello World");
}
</script>
</body>
</html>