how to program a button to work in javascript

Solutions on MaxInterview for how to program a button to work in javascript by the best coders in the world

showing results for - "how to program a button to work in javascript"
Joana
21 Feb 2016
1<input type="button" value="Im a Button" onclick="buttonWork();"/>
2<script>
3  function buttonWork() {
4    alert("Hello");
5  }
6</script>