> For the complete documentation index, see [llms.txt](https://docs.crowdpower.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.crowdpower.io/getting-started/javascript-tag/prompt-for-push.md).

# Prompt for Push

In order to send browser-based push notifications to your customers, you will need to request permission to do so. This command will display a system prompt for the user to grant access. You will also need to have the CrowdPower [service-worker.js](https://app.crowdpower.io/service-worker.js) file installed in the root of your website.

```javascript
<script>
  window.cp('push');
</script>
```

{% hint style="warning" %}
Before requesting for permission to send push notifications, you **must** install the CrowdPower Service Worker in the root of your website; typically the /public directory.&#x20;

[Download Service Worker](https://app.crowdpower.io/service-worker.js)
{% endhint %}
