Make a chrome taskbar icon on the taskbar when chrome is minimized

In google chrome, when alert() activated, and chrome is minimized, there is an instance in which the chrome icon on the taskbar glows orange (windows 7), sometimes the entire browser grows.

Is it possible to activate this luminous function using javascript?

I need this for our office. I want the chrome icon to glow when minimized, and the user will receive a new message.

Thanks!

+4
source share
2 answers

I needed a tactic that could catch the attention of users when they receive a new message, while the browser is minimized. I could not find a way for the taskbar icon to blink, but I found an alternative that still fills the need. @HariKrishnan gave a link that led to a googling steam that made me discover Web Notifications . You can find a very simple tutorial here .

Hooray!


In the future, I added tut here, as this is just a two-step process ..

Step 1

Ask user to enable webkitNotifications (Same with html5 geography)

 function askPermission(){ webkitNotifications.requestPermission(testNotification); } 

Step 2

Create Notification

 function testNotification(){ var notification = webkitNotifications.createNotification('IMAGE','TITLE','BODY'); notification.show(); } 

( Note. Several notifications will be flocked)

0
source

I found this part of the code, I can’t check now, because I do not use windows, but you should try.

 <script type="text/javascript"> // Flashing TaskBar setInterval(flashToolbar, 10000); // calls flashToolbar every 10000 ms function flashToolbar() { if (window.external.msIsSiteMode()) { window.external.msSiteModeActivate(); } } </script> 

source: http://blogs.msdn.com/b/jennifer/archive/2011/05/10/ie-pinned-sites-part-8-how-to-implement-a-flashing-taskbar-button.aspx

0
source

Source: https://habr.com/ru/post/1496090/


All Articles