Important Notice:

Course Content
Switch Statement
0/1
break and continue Statements
0/3
Basic Form Validation in JavaScript
0/1
JavaScript & Angular JS (Chapter- 6) M2-R5.1
About Lesson

JavaScript Event:-

                  जावास्क्रिप्ट इवेंट की मदद से आप अपने वेबपेज को इस तरह से डिजाइन कर सकते हैं कि आपका वेबपेज, यूजर की activity को respond कर सके और उसके अनुसार जरूरी बदलाव कर सके। इवेंट का प्रयोग करने से आपका वेबपेज dynamic & interactive बन जाता है।

               HTML के साथ जावास्क्रिप्ट की बातचीत को उन घटनाओं के माध्यम से नियंत्रित किया जाता है जो तब होती हैं जब उपयोगकर्ता या ब्राउज़र किसी पेज में हेरफेर करते हैं। जब पेज लोड होता है, तो इसे एक ईवेंट कहा जाता है। जब users  किसी बटन पर क्लिक करता है, तो वह क्लिक भी एक ईवेंट होता है। अन्य उदाहरणों में किसी भी key को दबाने, window बंद करने, window का size बदलने आदि जैसी घटनाएं शामिल हैं।

Example of web events.

  • A mouse click

  • A web page or an image loading

  • Selecting an input field in an HTML form

  • Submitting an html form

  • A keystroke

 

JavaScript Event:-

                              With the help of JavaScript events, you can design your webpage in such a way that your webpage can respond to user activity and make necessary changes accordingly. Using events makes your webpage dynamic & interactive.

               JavaScript’s interaction with HTML is controlled through events that occur when the user or browser manipulates a page. When the page loads, it is called an event. When users click on a button, that click is also an event. Other examples include events like pressing any key, closing the window, changing the size of the window, etc.

Example of web events.

  • A mouse click

  • A web page or an image loading

  • Selecting an input field in an HTML form

  • Submitting an html form

  • A keystroke

error: Content is protected !!