views:

1816

answers:

1

Is there an hosted example code (Javascript) that demonstrates Chrome desktop notifications? I'd like that use that in my own code.

Update: Here's a blog post explaining webkit notifications with an example.

+11  A: 

Check the design and API specification (it's still a draft) or check the source from this webpage for a simple example: It's mainly a call to window.webkitNotifications.createNotification.

If you want a more robust example (you're trying to create your own Google Chrome's extension, and would like to know how to deal with permissions, local storage and such), check it out Gmail Notifier Extension: download the crx file instead of installing it, unzip it and read it's source code.

GmonC
http://www.210computing.com/google/chrome_notifications.html is what I'm looking for. Thanks!
Sridhar Ratnakumar