Cara memprogram tombol untuk bekerja di JavaScript

<input type="button" value="Im a Button" onclick="buttonWork();"/>
<script>
  function buttonWork() {
    alert("Hello");
  }
</script>
Insert_Name_Here