JS downloads files in batches, only the last one can be downloaded with a tag download,

1. JS downloads files in batches. Only the last
2 can be downloaded with a tag download,. Code:

var a = document.createElement"a" //           
e = document.createEvent"mouseevents" ; //       
e.initMouseEvent"click" falsefalse; //       
a.href = href; //       
a.download = name; //       
a.dispatcheventE; // 
Nov.10,2021

FileSaver to know:

https://github.com/eligrey/FileSaver.js;


file-writer to know:

https://github.com/azl397985856/file-writer


one of them can be added with setTimeout (specific time must be given, not 0)

Menu