Sending notifications

suggest change

After the user has approved a request for permission to send notifications, a browser page can show a notification. The constructor throws if permission is not "granted". icon is a URL.

new Notification('Hello', { body: 'Hello, world!', icon: 'icon.ico' });

This will send a notification like this:

Hello Hello, world!

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents