Not supported
Sorry, to keep it simple and prevent exceptions, this demonstration uses the vendor-specific window.webkitNotifications
, which of all the Webkit-browsers is currently only supported by Google Chrome.
For information on the use of window.mozNotifications
, check Mozilla's wiki. It's very similar to Webkit's implementation, but lacks HTML notifications.
Blocked
Sorry, you've blocked notifications for this page. Copy the url below to your address bar, remove the block and try again :).
Request permission
Notifications are different from regular pop-ups in that they require the user's permission to be shown.
Notice that the request permission dialog only shows after user interaction (e.g. clicking a button). If you're adding this to a Chrome Extension, just add the 'notifications' permission and you're all set.