Buttons | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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 Antworten
+ 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