Buttons | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponses
+ 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