Event after file download complete?
Scenario:
I have a html page with a link to a php page that creates a pdf that is downloaded to the users computer with the header:
header("Content-Type: application/pdf");
header("Content-Disposition: attachment; filename="file.pdf");
etc
When I click the link on the first page I have a message (modal) showing "Generating pdf...". However I can't find a way to have this message/modal disappear after the file has been downloaded.
Any input appreciated.