<html>
<body>
<p>Click the button to change the HTML content of the document.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
document.body.innerHTML = "Some new HTML content";
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_doc_body_set by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:03:19 GMT -->
</html>