この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

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.

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 compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
badgeChrome Full support 53Edge Full support 18Firefox No support NoIE No support NoOpera Full support 39Safari ? WebView Android No support NoChrome Android Full support 53Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 41Safari iOS No support NoSamsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

ドキュメントのタグと貢献者

このページの貢献者: chrisdavidmills, mdnwebdocs-bot, mfluehr, fscholz, jpmedley, ThatGlennD
最終更新者: chrisdavidmills,