Showing posts with label
href
.
Show all posts
Showing posts with label
href
.
Show all posts
Friday, February 28, 2020
JQuery to create Download Link
Simple way to download file without navigating.
function downloadFile(filePath){ var link=document.createElement('a'); link.href = filePath; link.download = filePath.substr(filePath.lastIndexOf('/') + 1); link.click(); } downloadFile('filepath/myfile.xlsx');
Older Posts
Home
Subscribe to:
Posts (Atom)