web api instance property
Notification: requireInteraction property
Secure context Available in workers
The requireInteraction read-only property of the Notification 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 the
requireInteractionoption totruein the options object of theNotification()constructor.
Value
A boolean value.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.