Note: This feature is available in Web Workers

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The onerror property of the Notification interface specifies an event listener to receive error events. These events occur when something goes wrong with a Notification (in many cases an error preventing the notification from being displayed.)


Notification.onerror = function() { /* ... */ };


Notifications API Standard (Notifications API)
# dom-notification-onerror

Browser compatibility

BCD tables only load in the browser

See also