Skip to content

Glossary: JavaScript Basics

Event

Also written: events, event listener, addEventListener

Something that happens on a page, such as a click, a key press or a change to a box. `addEventListener` gives the browser a callback to run when it happens.

Where the book teaches it

Related terms

CallbackDOM