<script> function myFunction() { alert("ALERT"); } </script> <button onclick="myFunction()">Click</button>