<script> function myFunction() { document.write("<h1>HELLO</h1>") } </script> <button onclick="myFunction()">Click</button>