W3cubDocs

/DOM

Notification.badge

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.

Syntax

var url = Notification.badge

Value

A USVString containing a URL.

Specifications

Specification Status Comment
Notifications API
The definition of 'badge' in that specification.
Living Standard Initial definition.

Browser CompatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 53 18 No No 39 ?
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support No 53 No No 39 No ?

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Notification/badge