let pageUrl = "GPGeneration_Credit.ashx?UniqueID=" + __uniqueId + "&supplierID=" + supplierID + "&CreditID=" + OrderIds;
window.open(pageUrl);
// Want to check if the file download is complete and then refresh the page
location.reload();
I would appreciate any assistance, thank you for your help.