Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to add function to button in html

<script>
 function myFunction() {
   alert("ALERT");
 }
</script>
<button onclick="myFunction()">Click</button>
 
PREVIOUS NEXT
Tagged: #add #function #button #html
ADD COMMENT
Topic
Name
9+6 =