What are Events and Event Handlers?

Learn about events, event handlers, and the event object in jQuery.

What is an event?

A web page consists of elements such as buttons, text boxes, paragraphs, links, images, forms, etc. A user interacts with these elements by performing numerous actions. These actions include but are not limited to clicking on elements, typing in text boxes, and hovering the mouse over elements. These actions are examples of events performed on a web page.

An event is a user action that prompts a web page response.

The different types of jQuery events are shown below. We will primarily focus on mouse and keyboard-based events.

Get hands-on with 1200+ tech skills courses.