File download - JavaScript
Open download file pop-up in a web page using JavaScript. You can find it on github: https://github.com/chsdk/js-file-download
JavaScript
function downloadFile(filePath){
var link=document.createElement('a');
link.href = filePath;
link.download = filePath.substr(filePath.lastIndexOf('/') + 1);
link.click();
}
downloadFile("http://www.adobe.com/content/dam/Adobe/en/accessibility/pdfs/accessing-pdf-sr.pdf");