Skip to content
BuildExercises

Glossary / Events

Events: what it means

A click, key press or form submit that the page can react to. Code listens for events and runs when one happens.

How it shows up when you build

  • Your first screen: A click, key press or form submit that the page can react to. Code listens for events and runs when one happens.

A tip

  • Ask for 'one inline script that uses addEventListener' so behavior stays out of the markup.

Practise it

Build it with an AI tool and check the result in these exercises:

Related terms

Browser runtime