Buy us a coffee

JavaScript se button click kaise handle karein

  • Intermediate
  • Module 1 of 2 in this level
  • Open to learn
Start this skill

Watch

Watch the video to unlock the quizquiz खोलने के लिए video देखें

What you should understandआपको क्या समझना है?

  • पहले button को पकड़ें, फिर उस पर click सुनने को कहें।
  • addEventListener वह तरीका है जिससे यह सुनना जोड़ा जाता है।
  • click पर चलने वाला काम एक function में रखें, सीधे लंबा code नहीं।