Buttons | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Buttons

How do you make buttons do something when you press them????

11th Nov 2018, 6:12 AM
Da Panda
Da Panda - avatar
2 Answers
+ 9
You can use onclick attribute on button to call a function and then you can define that function in js.
11th Nov 2018, 6:41 AM
Arushi Singhania
Arushi Singhania - avatar