are there JS functions to download files to a users computer on the click of a button code example
Example: javascript download file
$('a#someID').attr({target: '_blank',
href : 'http://localhost/directory/file.pdf'});
$('a#someID').attr({target: '_blank',
href : 'http://localhost/directory/file.pdf'});