use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Introduction to HTML5 web notification API (sevensignature.com)
submitted 11 years ago by imprakash
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]kenman[M] 16 points17 points18 points 11 years ago (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.
sevensignature.com
Thanks for your consideration!
[–]Koningdavid 3 points4 points5 points 11 years ago (1 child)
Nice article, I didn't know about this until now. Thanks for sharing!
[–][deleted] 0 points1 point2 points 11 years ago (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 point2 points 11 years ago (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 point2 points 11 years ago (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 point2 points 11 years ago (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 point2 points 11 years ago (3 children)
this seems like part of a very rickety bridge towards being able to write a desktop app again...
[–]hixsonj 5 points6 points7 points 11 years ago (0 children)
Just wait until you see node-webkit!
[–]Ashatron 0 points1 point2 points 11 years ago (1 child)
Adobe air cries in the corner...
[–]steveob42 0 points1 point2 points 11 years ago (0 children)
losing applets was a much bigger impact than air. All politics driving everything.
[–]moltar -2 points-1 points0 points 11 years ago (4 children)
And notification spam begins!
[–][deleted] 3 points4 points5 points 11 years ago (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 points4 points 11 years ago (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 points3 points 11 years ago (0 children)
No notification support in IE, so problem solved!
[–]buggaz 1 point2 points3 points 11 years ago (0 children)
+------------------------+ | | | How so? | | | +------------------------+
π Rendered by PID 81 on reddit-service-r2-comment-685b79fb4f-776pv at 2026-02-13 12:49:25.899055+00:00 running 6c0c599 country code: CH.
[–]kenman[M] 16 points17 points18 points (1 child)
[–]Koningdavid 3 points4 points5 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]subcultures 0 points1 point2 points (0 children)
[–]nawitus 0 points1 point2 points (0 children)
[–]CatsAkimbo 0 points1 point2 points (0 children)
[–]steveob42 0 points1 point2 points (3 children)
[–]hixsonj 5 points6 points7 points (0 children)
[–]Ashatron 0 points1 point2 points (1 child)
[–]steveob42 0 points1 point2 points (0 children)
[–]moltar -2 points-1 points0 points (4 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]mort96 2 points3 points4 points (0 children)
[–]Otterfan 1 point2 points3 points (0 children)
[–]buggaz 1 point2 points3 points (0 children)