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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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: