Notification.badge

Note: This feature is available in Web Workers

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The badge property of the Notification interface returns the URL of the image used to represent the notification when there is not enough space to display the notification itself.

Value

A USVString containing a URL.

Specifications

Specification
Notifications API Standard
# dom-notification-badge

Browser compatibility

BCD tables only load in the browser