Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to program a button to work in javascript

<input type="button" value="Im a Button" onclick="buttonWork();"/>
<script>
  function buttonWork() {
    alert("Hello");
  }
</script>
 
PREVIOUS NEXT
Tagged: #program #button #work #javascript
ADD COMMENT
Topic
Name
8+7 =