Notification: badge property

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.


A string containing a URL.


Notifications API Standard
# dom-notification-badge

Browser compatibility

BCD tables only load in the browser