I have a very similar requirement specified here.
I need to have the user\'s browser start a download manually when $(\'a#someID\').click();
$(\'a#someID\').click();
But
I recommend using the download attribute for download instead of jQuery:
file_name
This will download your file, without opening it.