• Cours
  • Compilateur de code
  • Discuter
  • Tarification
  • Équipes
Menu
+ 1

Buttons

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

htmljavascript
11th Nov 2018, 6:12 AM
Da Panda
Da Panda - avatar
2 Réponses
+ 10
https://www.sololearn.com/learn/JavaScript/2758/?ref=app https://www.sololearn.com/learn/JavaScript/2759/?ref=app
11th Nov 2018, 1:18 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 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

Vous avez souvent des questions comme celle-ci ?

Apprenez de maniĂšre plus efficace, gratuitement :

  • Introduction Ă  Python

    7.1M apprenants

  • Introduction Ă  Java

    4.7M apprenants

  • Introduction Ă  C

    1.5M apprenants

  • Introduction Ă  HTML

    7.5M apprenants

Voir tous les cours
Aujourd'hui en vedette
Is it possible to convert .zip file to apk? If yes, how??
1 Votes
I think the heart system is ridiculous, 5 hearts that refill after like 5 hours? That is really just crazy to me.
1 Votes
Why can’t I use double “ in python?
0 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
0 Votes
Coding for Cybersecurity
0 Votes
Pointers in c#
0 Votes
2 cases not correct what's the problem
1 Votes
You’re free to give me your advice! 🚹
0 Votes
Salut tout le monde
1 Votes
How can i isntall modules
0 Votes