ReadonlybadgeThe badge read-only property of the Notification interface returns a string containing the URL of an image to represent the notification when there is not enough space to display the notification itself such as for example, the Android Notification Bar.
ReadonlybodyThe body read-only property of the specified in the body option of the A string.
ReadonlydataThe data read-only property of the data, as specified in the data option of the The notification's data can be any arbitrary data that you want associated with the notification.
ReadonlydirThe dir read-only property of the Notification interface indicates the text direction of the notification, as specified in the dir option of the Notification.Notification constructor.
ReadonlyiconThe icon read-only property of the part of the notification, as specified in the icon option of the A string.
ReadonlylangThe lang read-only property of the as specified in the lang option of the The language itself is specified using a string representing a language tag according to MISSING: RFC(5646, 'Tags for Identifying Languages (also known as BCP 47)')].
ReadonlyrequireThe 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.
ReadonlysilentThe silent read-only property of the silent, i.e., no sounds or vibrations should be issued regardless of the device settings.
ReadonlytagThe tag read-only property of the as specified in the tag option of the The idea of notification tags is that more than one notification can share the same tag, linking them together.
ReadonlytitleThe title read-only property of the specified in the title parameter of the A string.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe close() method of the Notification interface is used to close/remove a previously displayed notification.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsThe removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptions
The
Notificationinterface of the Notifications API is used to configure and display desktop notifications to the user.MDN Reference