MDN self-hosted library · e01.org

Notification: close event

Web Notifications

no runnable cells web-api-event upstream source

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.

Specifications

Browser compatibility

See also