MDN self-hosted library · e01.org

Notification: requireInteraction property

Web Notifications

no runnable cells web-api-instance-property upstream source

Web Notifications

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 requireInteraction option to true in the options object of the Notification() constructor.

Value

A boolean value.

Specifications

Browser compatibility

See also