---
title: Notification.badge
slug: Web/API/Notification/badge
tags:
  - API
  - Notification
  - Notifications
  - Notifications API
  - Property
  - Reference
  - badge
browser-compat: api.Notification.badge
---
{{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{securecontext_header}}

The **`badge`** property of the {{domxref("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

```js
var url = Notification.badge
```

### Value

A {{domxref('USVString')}} containing a URL.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
