Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notify application icon using javascript

Tags:

javascript

Is there any way to make the application icon, in taskbar(windows) or dock(os x) to highlight, using javascript ?

When I say highlight, is like the jumping icon in os x.

What I need is when my web app receive a websocket message, the user knows that, even if he/she is using another application.

like image 584
Beetlejuice Avatar asked Sep 28 '15 12:09

Beetlejuice


1 Answers

There is no way to do jumping icon animation analog via JavaScript. There is no such API. There are only 3 options:

  1. Sound notification
  2. HTML5 Notification API
  3. Favicon update
like image 67
IonDen Avatar answered Nov 15 '22 01:11

IonDen