Make chrome icon on windows taskbar glow when chrome is minimized

On google chrome, when an alert() is activated and chrome is minimized there is an instance that the chrome icon on the taskbar glows orange (windows 7) sometimes the whole browser maximizes.

Is it possible to activate that glowing feature with javascript?

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

Thanks!

Answers


What I needed was a tactic that can get the users attention when they receive a new message while the browser is minimized. I couldn't find a way for the icon on the task bar to blink but I found an alternative that still fills the need. @HariKrishnan gave a link that led to a couple of googling that made me discover Web Notifications. You can find a very simple tutorial here.

Cheers!


For future reference I added the tut here since its just a two step process . .

Step 1

Ask user to allow webkitNotifications (Same thing with the html5 geolocation)

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

Step 2

Creating a notification

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

(Note: Multiple notifications will stack)


I found this piece of code, can't test is right now because i'm not using windows, but you should give it a 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


Need Your Help

Separate string by first two whitespaces and comma, PHP

php parsing

I have a long set of numbers and description followed by a comma that I need to parse into 3 fields, for example:

How to work with a datetime.datetime object returned from an Oracle query in Python

python oracle datetime

I have a query against an Oracle database using cx_Oracle. The results from the query come as

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.