Tutorial: Building the Simplest JS Notification Library
Before I talk about the issues on my Notifications project, let’s see how use it.
That’s simplest example of notification:
var notification = new Notification("yeah, baby, yeah!");
Try it yourself
Pretty cool, eh?
In the example above we are only printing the attribute title of the notification. There are other attributes we can declare to have a better experience with our notification and, yay, those are almost working in the same way at the main browsers (except for IE family, of course. But we are talking about real browsers, aren’t we? But don’t worry, we’ll create a way to give a fallback to them).