The Event Object

Every listener is handed an event object that says what just happened, so one function can tell which button was clicked, which element it landed on, and which key was pressed.

Updated

Cheat sheet: The Event Object
Category
JavaScript
Level
Apprentice
Tags
Event Object, Event Target, JavaScript, keydown Event, web-development