Chrome notification

1

Does anyone know or have ever used this chrome notification and know how it works?

Because when I try to use webKitNotifications.createHTMLNotification() it error ReferenceError: webKitNotifications is not defined can anyone help me?

    
asked by anonymous 27.03.2014 / 21:54

1 answer

3

You're writing wrong:

window.webkitNotifications // correto: letra 'k' minúscula

window.webKitNotifications // errado (letra 'k' maiúscula está errada)

The official API name is Notifications , and in firefox it can already be used with this name, like this:

window.Notifications

Usage example:

jsfiddle

Reference:

Html5Rocks: link

MDN: link

    
27.03.2014 / 22:09