Skip to main content

Event Handling

An event is basically an action or set of actions. To perform a task/action, we need to accomplish a set of instructions specific to that task. JavaScript has a set of inbuilt events and also allows programmers to define custom events.

Syntax for Listening to an Eventโ€‹