Back to Content

Notification: show event

files/en-us/web/api/notification/show_event/index.md

latest670 B
Original Source

{{APIRef("Web Notifications")}}{{securecontext_header}} {{AvailableInWorkers}}

The show event of the {{domxref("Notification")}} interface fires when a {{domxref("Notification")}} is displayed.

Syntax

Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property.

js-nolint
addEventListener("show", (event) => { })

onshow = (event) => { }

Event type

A generic {{domxref("Event")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also