【问题标题】:how to detect that file download is Complete using javascript [duplicate]如何使用javascript检测文件下载是否完成[重复]
【发布时间】:2023-04-10 15:30:01
【问题描述】:
    var StrPageName = "GPGeneration_Credit.ashx?UniqueID=" + __uniqueId + "&supplierID=" + supplierID + "&CreditID=" + OrderIds;
        window.open(StrPageName);
   // Here I want to detect that File download is Complete or not and then refresh the //page
        location.reload();

如有错误请帮我道歉

【问题讨论】:

  • 你得到了什么?有什么错误吗?你能提供你的程序的输出吗?

标签: javascript


【解决方案1】:

您可以从服务器端设置 cookie,指示文件下载完成。有一些 jQuery plugin 用于此

【讨论】:

    猜你喜欢
    • 2013-09-11
    • 2011-06-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-15
    • 2015-09-28
    相关资源
    最近更新 更多