title: how to detect that file download is Complete using javascript
body: <pre><code>    var StrPageName = "GPGeneration_Credit.ashx?UniqueID=" + __uniqueId + "&amp;supplierID=" + supplierID + "&amp;CreditID=" + OrderIds;
          window.open(StrPageName);
     // Here I want to detect that File download is Complete or not and then refresh the //page
          location.reload();
  </code></pre>
  
  <p>Please help me sorry for any mistake</p>