<button onclick="function()">Button</button> <script> function function() { alert("Function") } </script>