Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 3 : event bubbling / इवेंट बबलिंग

Advertisement

Detailed Solution

सही उत्तर event bubbling / इवेंट बबलिंग है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

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 का हैंडलर। सबसे भीतरी से सबसे बाहरी तत्व तक यह प्रसार कहलाता है...

1.
event capturing / इवेंट कैप्चरिंग
2.
event delegation / इवेंट डेलिगेशन
3.
event bubbling / इवेंट बबलिंग
4.
event hoisting / इवेंट हॉइस्टिंग

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. / इवेंट बबलिंग में इवेंट लक्ष्य तत्व से उसके पूर्वजों के माध्यम से ऊपर की ओर जाता है। कैप्चरिंग विपरीत दिशा है, सबसे बाहरी तत्व से लक्ष्य तक। हॉइस्टिंग चर और फलन घोषणाओं पर लागू होता है, इवेंटों पर नहीं।

Downloaded from PrepSnap (prepsnap.in)