aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Alert after completion of download. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Alert after completion of download." Watch "Alert after completion of download." New topic

Alert after completion of download.

V. Aggarwal

Joined: Jun 07, 2006
Posts: 4
Please help me out in this problem.

I have a jsp which is having a link to static zip file on the server for download. If user clicks to that link download window(default one) will pop up and ask the user to save the file.
I need a javascript method which should give alert message after the file has been downloaded successfuly. (If somehow file has not been downloaded properly then no alert should come.)

V. Aggarwal<br />SCJP, SCWCD
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15379
JavaScript has no control over the download. It does not know if it was downloaded or not so you are out of luck.

I agree. Here's the link:
subject: Alert after completion of download.