This javascript code does not download the actual file, but instead it puts the path+filename of the URL into the contents of a file named requestRouter_amd64.msi:
<p>
<script type = "text/javascript">
async function downloadFile(filePathAndName, fileDataContentType, fileName) {
try {
fileDataContentType = "octet/stream"
const blob = new Blob([filePathAndName], {
type: fileDataContentType
});
const link = document.createElement('a');
link.href = window.URL.createObjectURL(blob);
link.download = fileName;
link.click();
} catch (error) {}
}
downloadFile("https://download.microsoft.com/download/E/9/8/E9849D6A-020E-47E4-9FD0-A023E99B54EB/requestRouter_amd64.msi", "application/zip", "requestRouter_amd64.msi");
</script>
</p>
I also tried "application/zip" for the fileDataContentType but same result.