- Events in browsers are handled in two ways:-
1. Event Bubbling
2. Event Capturing.
- Bubbling:-
— When an Event is occurred It is captured by the inner most element first.Then passed to outer element.
- Capturing:-
— When an Event is occurred It is captured by the outer most element first.Then passed to inner element.
- Below Diagram shows Bubbling and Capturing:-