---
title: "Events & notifications in JavaScript PDF viewer | Nutrient"
canonical_url: "https://www.nutrient.io/guides/web/events/"
md_url: "https://www.nutrient.io/guides/web/events.md"
last_updated: "2026-05-29T15:33:59.522Z"
description: "Unlock the secrets of web events with our comprehensive guide. Elevate your knowledge and stay ahead. Dive in now!"
---

# Events and notifications in our JavaScript viewer

Hook into JavaScript events dispatched by the PDF viewer to trigger workflows and automations or to customize behavior.

## Key capabilities

- **Annotation** — Intercept changes originating from the UI or server

- **Forms** — Trigger actions in sync with form field inputs

- **Text selection** — Retrieve text or subscribe to change events

- **Bookmarks** — Dispatched when created, edited, or deleted

- **Events** — Hook into events that dispatch whenever an action occurs

- **Customizable** — Configure UI behavior, hide buttons, and more

## Guides for events and notifications

**[Annotation events](https://www.nutrient.io/guides/web/events/annotation.md)**

Learn about the events dispatched for annotation changes

**[Form events](https://www.nutrient.io/guides/web/events/forms.md)**

How to detect user input in form fields

**[Text selection events](https://www.nutrient.io/guides/web/features/text-selection.md)**

How to retrieve selected text and text located within a selection range

**[Bookmark events](https://www.nutrient.io/guides/web/events/bookmarks.md)**

How to detect when a bookmark is created, updated, or deleted

**[Events](https://www.nutrient.io/guides/web/customizing-the-interface/observing-changes-with-events.md)**

Learn about the events that are dispatched every time an action occurs

**Call to Action**

Start your free trial for unlimited access and expert support.

[Learn More](https://www.nutrient.io/sdk/web/getting-started/other-frameworks/javascript.md)
---

## Related pages

- [Manage annotations effectively with our API](/guides/web/events/annotation.md)
- [Forms](/guides/web/events/forms.md)
- [Manage bookmarks efficiently with event-driven updates](/guides/web/events/bookmarks.md)
- [Text Selection](/guides/web/events/text-selection.md)

