Comment programmer un bouton pour travailler en javascript

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