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 click
event of the Notification
interface fires when the user clicks on displayed Notification
.
The default behavior is to move the focus to the viewport of the notification's related browsing context. If you don't want that behavior, call preventDefault()
on the event object.