# ariaNotify()

> The `ariaNotify()` method asks the screen reader to announce a given string.

## What is ariaNotify() and how is it different from aria-live?

The method of `Element` and `Document` that sends a text message to be announced by assistive technologies. Simplifies announcing dynamic changes compared to live regions, which require an element present in the DOM before updating it.

- Topic: Live Region Roles
- Type: technology

## Example

Wrong:

```js
function onSave() {
  document.ariaNotify('Saved');
}
```

Right:

```js
function announce(msg) {
  if ('ariaNotify' in document) {
    document.ariaNotify(msg);
  } else {
    liveRegion.textContent = msg;
  }
}
```

Feature-detect `ariaNotify` and fall back to a live region where it is not supported.

## Common mistakes

- Announcing every small change, so the screen reader talks over the user.

## Key points

- Code checks that `ariaNotify` exists before calling it and falls back to a live region.
- Announced text is short and also visible on the page, not only spoken.
- Announcements are debounced, not fired on every keystroke, scroll or timer tick.

## Interview questions

### Does `ariaNotify()` need an element in the DOM?

No. You can call it on `document` or any element, without an existing live region.

### Should I replace all live regions with `ariaNotify()`?

Not yet. Support is limited, so keep a live region fallback.

## Related cards

- [\[aria-live\]](https://wonderium.dev/a11y/aria-live.md)
- [Live Region](https://wonderium.dev/a11y/live-region.md)
- [status](https://wonderium.dev/a11y/status.md)
- [Screen Readers](https://wonderium.dev/a11y/screen-readers.md)

---

- Level: [Accessibility](https://wonderium.dev/a11y.md)
- HTML version: https://wonderium.dev/a11y/aria-notify
- Last updated: 2026-11-25
