How do I close the popup window after the file has been opened or saved. Right now document.readyState = complete closes the popup window before the user can either select open or save from the file download option.
if(document.readyState == "complete")
{
{
window.close();
}
}
Is there a way the window.close can be triggered after the user selects one of the file download options.