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.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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 string containing a URL.

Specifications

Specification
Notifications API Standard
# dom-notification-badge

Browser compatibility

BCD tables only load in the browser