views:

28

answers:

2

If Safari/Firefox have already downloaded files then they keep a download manager window open. When the user downloads a new file from my site, is there any way to force that download manager window to the front of all windows?

+1  A: 

I don't think so. The Download manager is not under the site's control. Maybe through a Firefox extension, but definitely not using normal JavaScript.

Pekka
+1  A: 

Can't you make the download window close on completion? Then it will re-open each time, which usually results in it being on top.

MJB
How do I make it close on completion? If I can do that, I assume I should be able to make it the focus/front window.
psychotik
I think the OP is talking about how to do this programmatically, from the site's end.
Pekka
Yea that's what I don't get - how can the site close the download window?
psychotik
That;s how I understood the question -- get the site to close it programmatically. I don't know of any way to do that, but I was suggesting that if FFX can ALWAYS close the download window, then won't it always have to OPEN it new each time, putting it on top?
MJB
Sorry -- forgot to say that under about:config there is an option called browser.download.manager.focusWhenStarting and browser.download.manager.closeWhenDone. I think those will do what you want.
MJB