If you don't mind downloading the whole file into the browsers memory this should do:
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequ... https://developer.mozilla.org/en-US/docs/Web/API/URL/createO...
And then programmatically click the object URL.