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 onclose
property of the Notification
interface specifies an event listener to receive
close
events. These events occur when a
Notification
is closed.
Syntax
Notification.onclose = function() { ... };
Browser compatibility
BCD tables only load in the browser