-1

Say I have facebook open in one tab and am currently active in another. If I get a notification on facebook I get a weird popup from the browser. Here's a picture:

enter image description here

Google does these same types of notifications when you get IM's. My question is... how do they do this?

CBroe
  • 86,812
  • 12
  • 88
  • 140
neubert
  • 14,976
  • 22
  • 102
  • 184

1 Answers1

1

They use Chrome's desktop notification feature.

Check out an example here: Chrome desktop notification example

P.S: You have to allow a site to show you desktop notifications. You will get a prompt near the address bar in Chrome, the first time a site tries to show you desktop notification.

Community
  • 1
  • 1
Darshan
  • 171
  • 1
  • 10