Answers for "how to make function a button in html"

35

how to create a button in html

<button onclick="window.location.href='/page2'">Continue</button>
Posted by: Guest on June-08-2020
3

button functions html

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

Code answers related to "how to make function a button in html"

Browse Popular Code Answers by Language