Javascript in linux

Ok, then how can i sense the starting of download?

Here is how events work in the web browser.
http://www.w3.org/TR/DOM-Level-3-Events/#dom-event-architecture

There are no events that relate to downloading, or even files, so it is not possible for JavaScript to sense any kind of event relating to downloading.

Hmmm, i understand. Is there a way through extensions, addons, like that??
Call me troublesome, But i don wanna give up, i just wanna find when and what file is downloading on my clients browser.

About the only way that comes to mind is for the client to send an ajax request to the PHP script that is providing the download, so that PHP can then respond when the download is complete.

The PHP forum would know how PHP can achieve that.

Well, yeah Php can do this i know. But i really don’t have server side work here. All i got is the browser. i want to do it through injecting scripts, extensions, plugins. This is for a general solution for the browser not for a particular site. I will check if there is any API in FF, Safari, Chrome extensions development for monitoring the activity status.

But u guys where really helpful. Amazing responses, thanks a lot!!!