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.)
Syntax
Notification.onerror = function() { ... };
Specifications
Specification | Status | Comment |
---|---|---|
Notifications API The definition of 'onerror' in that specification. |
Living Standard | Initial specification. |
Browser compatibility
BCD tables only load in the browser