> For the complete documentation index, see [llms.txt](https://dexiejs.typogram.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dexiejs.typogram.co/dexie/dexie.on.md).

# Dexie.on()

#### Syntax

```javascript
db.on(eventType, subscriberFunction);
```

```js
Dexie.on(staticEventType, subscriberFunction)
```

#### Parameters

| eventType / staticEventType: String | The event to subscribe to               |
| ----------------------------------- | --------------------------------------- |
| subscriberFunction: Function        | Function called when event is triggered |

#### Static Events

"storagemutated"

#### Events

"ready"

"error"

"populate"

"blocked"

"versionchange"

"close"
