Question
Option 3 : event bubbling / इवेंट बबलिंग
Detailed Solution
सही उत्तर event bubbling / इवेंट बबलिंग है।
Question:
Clicking a button inside a div fires the button's handler first and then the div's handler. This propagation from the innermost to the outermost element is called... / एक div के भीतर बटन क्लिक करने पर पहले बटन का हैंडलर चलता है, फिर div का हैंडलर। सबसे भीतरी से सबसे बाहरी तत्व तक यह प्रसार कहलाता है...
Correct Answer: event bubbling / इवेंट बबलिंग
In event bubbling, the event travels upward from the target element through its ancestors. Capturing is the reverse direction, from the outermost element down to the target. Hoisting applies to variable and function declarations, not events. / इवेंट बबलिंग में इवेंट लक्ष्य तत्व से उसके पूर्वजों के माध्यम से ऊपर की ओर जाता है। कैप्चरिंग विपरीत दिशा है, सबसे बाहरी तत्व से लक्ष्य तक। हॉइस्टिंग चर और फलन घोषणाओं पर लागू होता है, इवेंटों पर नहीं।