Document.getElementById.OnClick

        <script>
            document.getElementById("myBtn").onclick = function() {
                alert("Hello World");
            }
        </script>
th3n00bc0d3r