0
how do you make a working button in html?
How do you make a button that when clicked____ happens please help i just started coding so i know NOTHING
4 odpowiedzi
+ 13
Use onclick attribute of button to call JavaScript Function
<button onclick="demofunction()"> Click Me</button>
<script>
function demofunction(){
alert("You clicked button");
}
</script>
+ 12
No Problem!!😉
+ 1
Thanks!
0
THX