If I want to create an app where on clicking “Download” button progress bar should be appear and on completing 100% of progress bar the progress bar should be disappearing and the image should be downloaded. So how can I do it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our W3Make Forum 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.
Add a <div> element with an ID to represent the progress bar, like <div id=”progressBar”></div>.
After adding progress bar
You can use setTimeout or setInterval to repeatedly update the width of the progress bar until the download is complete.
I want to do that in an app not in a web page