Notification: close event
Web Notifications
Web Notifications
The close event of the Notification interface fires when a Notification is closed.
Syntax
Use the event name in addEventListener():
addEventListener("close", (event) => { })
Alternatively, assign to the event handler property of the interface:
onclose = (event) => { }
Event type
A generic Event.