Buttons | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 ответов
+ 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