W3cubDocs

/DOM

Notification.onerror

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.)

Syntax

Notification.onerror = EventListener;

Value

A function which serves as the event handler for the error event. When an error occurs, the specified function will be called. If null, no error handler is in effect.

Specifications

Specification Status Comment
Notifications API
The definition of 'onerror' in that specification.
Living Standard Initial specification.

Browser compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support Yes ? No No ? ?
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support No Yes ? No ? No ?

See also

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Notification/onerror