Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. Notification
  4. requireInteraction

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.

Value

A boolean value.

Specifications

Specification
Notifications API
# dom-notification-requireinteraction

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp