javascript – jQuery check when PDF download is complete – Education Career Blog

I have a link which when clicked downloads a pdf file.

Is there a way using jQuery to tell when this has occurred. Basically I want the link to change from download to please wait. And when the download is complete it will change to something else.

The main reason is the pdf is generated server side and can take 10 or 20 seconds.

,

There is no way to check this; there is no event like ondownloadready.

But there are some work-arounds… Check this question on stackoverflow.

Leave a Comment