Sorry if my question is unclear, it's hard for me to explain.
Basicaly I want this:
<a href="the_other_webpage" download>download file</a>
to download the file this webpage automatically downloads:
html:
<a id="download" href="download_file_url" download hidden></a>
javascript:
document.getElementById('download').click();