Notification: requireInteraction property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
Note: This feature is available inWeb Workers.
TherequireInteraction read-only property of theNotification interface returns a boolean value indicating that a notification should remain active until the user clicks or dismisses it, rather than closing automatically.
Note:This can be set when the notification is first created by setting therequireInteraction option totrue in the options object of theNotification() constructor.
In this article
Value
A boolean value.
Specifications
| Specification |
|---|
| Notifications API> # dom-notification-requireinteraction> |