I'm updating an old system. When a user clicked on a button to download a file, javascript would disable the button and display a "please wait" div.
They also added in the window.onfocus
a function that would enable the button and hide the div.
This was working well under IE8, they just upgraded to IE11 and the behavior for downloading file has changed and the window.onfocus
is not always called (after a save as).
After downloading a file, how can I hide a "please wait" div? Which event in IE11 replaced the window.onfocus
event from IE8 ?