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

16th May 2018, 2:53 PM
Godisgoodmatt Gaming
Godisgoodmatt Gaming - avatar
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>
16th May 2018, 3:02 PM
Jaydeep Khatri
Jaydeep Khatri - avatar
+ 12
No Problem!!😉
16th May 2018, 3:07 PM
Jaydeep Khatri
Jaydeep Khatri - avatar
+ 1
Thanks!
16th May 2018, 3:03 PM
Godisgoodmatt Gaming
Godisgoodmatt Gaming - avatar
0
THX
8th Mar 2020, 10:41 AM
G D -LAZER
G D -LAZER - avatar