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

前端 未结 3 2036
半阙折子戏
半阙折子戏 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-22 00:06

    This is not possible to do with front end javascript, there is no way for it to retrieve the progress of a download and it doesn't have any events relating to downloads.

    I don't think tracking the progress can be done with server side languages either.

提交回复
热议问题