# Event

*noun*

say it: **“ih-VENT”** **/ɪˈvɛnt/**

Something that happens on a web page, such as a click, a key press or a form being sent, that code can respond to.

## What is **Event** in JavaScript?

**Event** — A member that lets an object notify subscribed code that something happened.

```javascript
button.addEventListener("click", event => {
    const clickedButton = event.target;
});
```

## In a sentence

- “Each click is an **event**, and our listener reacts to it.”

Level: Journeyman · [More JavaScript terms at this level](https://www.ask-codey.com/glossary?category=javascript&level=3)

Updated: November 9, 2026

## In other subjects

- [Event in C#](https://www.ask-codey.com/glossary/event)

Source: https://www.ask-codey.com/glossary/event-javascript-2
