# Responding to Events

Responding to Events: Responding to Events: an overview, Imperative.

Updated: November 3, 2026

1. [Responding to Events: an overview](https://www.ask-codey.com/lessons/responding-to-events-an-overview) (Apprentice): An event is something that happens on a page, such as a click, and your code responds to it by giving the browser a function to run each time it happens.
2. [Imperative](https://www.ask-codey.com/lessons/responding-to-events-imperative) (Apprentice): In the imperative style, your JavaScript finds an element and attaches a handler to it with addEventListener, so the HTML holds no JavaScript at all.

Source: https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/csharp-responding-to-events
