+ 2
Why we use event handling in JS?
4 Answers
+ 2
It is used to make webpages more attractive and user friendly.
Like : generally we like to use mouse to select anything in system instead of selecting it by keyboard
0
To trigger code.
0
to make our website dynamic
- 1
suppose you, want some animation to happen when user opens your website,
so opening your site can be considered an event , so based on that event it ll start animation function automatically when event detected.
that's y it's critical, for dynamic websites