The Event Family
Explore the main categories of events in JavaScript and understand how the Event object provides properties and methods to interact with these events. This lesson helps you grasp event-driven programming fundamentals by demonstrating how to use the Event object within handler functions to capture event type and target information for dynamic web interactions.
We'll cover the following...
We'll cover the following...
Categories of events
Many types of events can be triggered by DOM elements. Here are the main event categories.
Category | Examples |
Keyboard events | Pressing or releasing a key |
Mouse events | Pressing or releasing a key |
Window events | Loading or closing a page, resizing, scrolling |
Form events | Changing focus on a form field, submitting a form. |
Every event is associated to an Event object which has ...