I'm having a problem specific to IE with this function:
function downloadFileFromUserControl(filename) {
var name = filename.split("/");
var fName = name[name.length - 1];
console.log("IE speaking, I'm just going to take a little nap during this request");
var link = document.createElement('a');
link.download = fName;
link.href = filename;
link.click();
console.log("Oh, I'm late to the party?? Back to sleep I guess");
}
In Chrome this function works perfectly, I use this to download PDF files from hyperlinks. No errors, it just will post to the console.
Is there some additional code IE needs to make this work? Thanks