CSE 121B: JavaScript Language

Event Handling

Overview

Handling events in JavaScript is a fundamental part of building interactive web pages. In this activity, you'll learn all about the different events you can handle, how to handle them, and how to pass data between the event handler and the rest of your code.

"Events are things that happen in the system you are programming — the system produces (or "fires") a signal of some kind when an event occurs, and provides a mechanism by which an action can be automatically taken (that is, some code running) when the event occurs. Events are fired inside the browser window, and tend to be attached to a specific item that resides in it. " - MDN

Prepare

  1. Read 📝JavaScript Events - WDD Learning Modules

Check Your Understanding

  1. Complete the activities presented in these Ponder Activities - WDD Learning Modules