MDN self-hosted library · e01.org

Notification: error event

Web Notifications

no runnable cells web-api-event upstream source

Web Notifications

The error event of the Notification interface fires when something goes wrong with a Notification (in many cases an error preventing the notification from being displayed.)

Syntax

Use the event name in addEventListener():

addEventListener("error", (event) => { })

Alternatively, assign to the event handler property of the interface:

onerror = (event) => { }

Event type

A generic Event.

Specifications

Browser compatibility

See also