javascript - Which event to bind to after browser's window.location receives a file from the web server? -


i using window.location download file web server. process on server create file takes while , display progress bar in browser.

the code line after window.location hides progress bar executes right after window.location executes immediately, therefore progress bar doesn't show.

how show progress bar until browser gets file? there event fires when happens? attach event , that's can hide progress bar.

addition:
window.location going asp.net mvc action method (same app) returns filestreamresult.


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -