Expositus

Category: javascript

Author: Mark Fischer, Jr.
Posted: Aug 19, 2016
Tags: javascript

Getting started with the HTML5 notification API

I used the HTML5 notification API for the first time today, it’s actually much more simple than I expected. There are two functions you need to know about: // to ask for permission Notification.requestPermission(callback); // to display a notification new Notification(message); Before you actually display the notification, you need to...