Code: Select all
//JavaScript:
function DownloadFile(ID){
document.location = 'file-download.php?ID=' + ID
}Problem (with IE of course):
But when the file is downloaded and I move the mouse back to the page, eveything is broken and I get lots of JS-errors. The only immediate solution to the problem is to reload the page.
What gymnastics should I do to trick IE into working as expected, which is, to run the page continuously without errors, no matter how many times I click the download button?
This is because the page offers several downloads from a mysql database and I don't want users to have to reload the page after each download.