I would like to able to track, purely on the client side, the progress of a file download, especially file download completion.
Is there a JavaScript API that allows me to define a callback upon file download completion?
I would like to able to track, purely on the client side, the progress of a file download, especially file download completion.
Is there a JavaScript API that allows me to define a callback upon file download completion?
No, this is not possible using pure javascript. There are some techniques though involving using cookies from the server and continuous poll from the client. I've illustrated an example here:
Hide image using Javascript after controller action is complete MVC3