- Infinitive events (like: do): At the start of event it's triggered.
 - Past participle events (like: done): On the completion of event it's triggered.
 
- When click on mouse or drag.
 - When press any keyboard key.
 - Automatically run events after specific program/function execution.
 
- Suppose when you click on a mouse then an event occur. It doesn't mean only one function or procedure execute for events. May be group of programs run for specific events.
 
→
preventDefault() functionality:- All infinitive events provide 
preventDefault()functionality. - Can stop the execution of an action before it starts.
 - Return false when called [return e.preventDefault()].
 

No comments:
Post a Comment