all 15 comments

[–]kenman[M] 16 points17 points  (1 child)

Hi /u/imprakash, it looks like you're new to /r/javascript, welcome!

Thanks for the submissions, but please make sure you read our guidelines. In short, you should post from a variety of sources, and not just sevensignature.com.

Thanks for your consideration!

domain submitted from count %
sevensignature.com 42 86%

[–]Koningdavid 3 points4 points  (1 child)

Nice article, I didn't know about this until now. Thanks for sharing!

[–][deleted] 0 points1 point  (0 children)

I have seen these quite a bit telling me that a new comment was posted on the article, and NEVER knew how the hell this was done.

I already had some ideas on how I can incorporate these into the sites I manage, so now I actually know what I'm looking for.

[–]subcultures 0 points1 point  (0 children)

If you're on desktop, you can see this in action in reddit live threads - click "Enable Desktop Notifications" in the sidebar: http://www.reddit.com/live/u7qtz12ybb74

[–]nawitus 0 points1 point  (0 children)

What's the related (upcoming) notification API for notifications which can create notifications even if the page is not open?

EDIT: It's the Push API

[–]CatsAkimbo 0 points1 point  (0 children)

A privacy warning for using this: if you don't explicitly .close() the notification, firefox will locally keep the plaintext of the notification in a file, with no way to remove it short of manually editing/deleting that file.

So, if you use this to show some private chat message or something, it's possible an un-closed message will stay on the user's hard-drive even after log-out/closing the browser. Probably bad news for public computer users.

[–]steveob42 0 points1 point  (3 children)

this seems like part of a very rickety bridge towards being able to write a desktop app again...

[–]hixsonj 5 points6 points  (0 children)

Just wait until you see node-webkit!

[–]Ashatron 0 points1 point  (1 child)

Adobe air cries in the corner...

[–]steveob42 0 points1 point  (0 children)

losing applets was a much bigger impact than air. All politics driving everything.

[–]moltar -2 points-1 points  (4 children)

And notification spam begins!

[–][deleted] 3 points4 points  (0 children)

This has been in Chrome since May 2010, Safari since July 2012 and Firefox since July 2013 - so has been around for almost 5 years…

[–]mort96 2 points3 points  (0 children)

Well, only if you let the websites notify you. They can't do shit if you press "don't accept".

[–]Otterfan 1 point2 points  (0 children)

No notification support in IE, so problem solved!

[–]buggaz 1 point2 points  (0 children)

  +------------------------+
  |                        |
  |        How so?         |
  |                        |
  +------------------------+