Perhaps this is a fairly big and ambiguous question:
In the Stack Overflow chatrooms, there is a button to "enable desktop notifications," which will show something in the system tray when someone replies to you.
By what mechanism does this work? It's always made me curious.
How does a website access the system tray?
Best How To :
It uses the
Notification object (i.e.
var n = new Notification("Hello");) to provide local notifications on a per-website basis. Each browser implements the standard differently (see Chrome, Firefox, and Safari), but they all operate essentially the same way, sending notifications based on the permissions they have (
window.Notification.permission), which can be
default (hasn't been asked, in which case you would
denied. Opera and Internet Explorer do not support desktop notifications at this time.