Notification: close Ereignis

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

Sicherer Kontext: Diese Funktion ist nur in sicheren Kontexten (HTTPS) in einigen oder allen unterstützenden Browsern verfügbar.

Hinweis: Diese Funktion ist in Web Workers verfügbar.

Das close Ereignis des Notification Interfaces wird ausgelöst, wenn eine Notification geschlossen wird.

Syntax

Verwenden Sie den Ereignisnamen in Methoden wie addEventListener() oder setzen Sie eine Ereignis-Handler-Eigenschaft.

js
addEventListener("close", (event) => {});

onclose = (event) => {};

Ereignistyp

Ein generisches Event.

Spezifikationen

Specification
Notifications API
# dom-notification-onclose

Browser-Kompatibilität

Siehe auch