How do I execute some javascript after a file is downloaded?

前端 未结 3 2038
半阙折子戏
半阙折子戏 2020-12-21 23:29

I have a page with a link to a file. When the link is clicked I use the code below to show a loading message:

$(\'#TerritoriesToExcelLink\').click(function()         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-21 23:56

    If you aren't opposed to using flash...

    You could create an invisible flash object on the page, then when you click the download link, you could trigger flash to download the file, then handle the flash download complete event and use the ExternalInterface API to raise the event in javascript.

提交回复
热议问题