What you will learn in this lesson
JavaScript becomes much more useful when it reacts to something a person does.
That is what this lesson is about. A person acts, the page notices the event, and JavaScript runs a response.
Your lesson goals are simple:
- understand what an event is in plain English
- see how user actions connect to JavaScript behavior
- read a few tiny examples without panic
- separate the user action from the response code
- feel calmer when pages start acting interactive
First the user does something. Then JavaScript can respond at the right moment.