Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var a0 = document.createElement('a');
- a0.setAttribute('download', 'download0.ext');
- a0.setAttribute('href', '/someFile.ext');
- document.body.appendChild(a0);
- var a1 = document.createElement('a');
- a1.setAttribute('download', 'download1.ext');
- a1.setAttribute('href', '/someOtherFile.ext');
- document.body.appendChild(a0);
- a0.click();
- a1.click();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement