How to wait for user decision when downloading file
<p>I want to continue with this question: <a href="http://stackoverflow.com/questions/14947413/how-to-download-whole-file-from-website">How to download whole file from website</a>. I find out that downloading a file is an automatic process and it doesn't wait for user decision cancel/save. So for example user writes url to download file and wait 1 minute. The file automatically starts downloading (I am using firefox) probably to the memory of the browser and when file is download then it continues processing code where I have logger "file successfully download" but there is still pop up window with decision cancel/save. So my question how I can wait for this decision and react on this.</p>
