Answers for "make a button html with function"

5

button functions html

<script>
 function myFunction() {
   alert("ALERT");
 }
</script>
<button onclick="myFunction">Click</button>
Posted by: Guest on September-22-2020
0

how to add function to button in html

<script>
 function myFunction() {
   alert("ALERT");
 }
</script>
<button onclick="myFunction()">Click</button>
Posted by: Guest on February-14-2022

Code answers related to "make a button html with function"

Code answers related to "Javascript"

Browse Popular Code Answers by Language