Google Chrome has an API to allow websites to use desktop notifications. This is the same thing that Google’s apps (e.g., Gmail) and some Chrome extensions (e.g., TweetDeck) use for message notifications. It’s drop-dead simple to use. Here’s a simple example:
Once permission has been obtained, the callback displays the notification like this:
Of course, you will want to use the checkPermission() function to make sure the user clicked “Allow”. If they denied permission, you might have to do something else.