Force a browser to save file as after clicking link
You could use the HTML5 download attribute like so:
<a href="path/to/file" download>Click here to download</a>
This opens a "save as" dialog regardless of file type without taking you away from the page.
a link - force Chrome to save file instead of opening
There seems to be a solution with HTML 5 (download attribute):
<a href="path/to/file" download>Download Now</a>
html5 a download force save as dialogue
This is a browser (chrome ? ) feature.
Your users may configure it as they wish.
Neither you nor even FileSaver.js can do anything about it...
Force a link to open a Save link as dialog
If I understood correctly and without any plugins, I think it is almost impossible. The only way you can do that would require you to verify the browser and for some browser like Chrome (due the spec http://dev.w3.org/2009/dap/file-system/file-dir-sys.html ) you can do that.
Related Topics
Changing Source on Html5 Video Tag
Dynamically Set Value of a File Input
Why I Have to Put All the Script to Index.Html in Jquery Mobile
What Is the Most Efficient Way to Create HTML Elements Using Jquery
How to Use Checkbox Inside Select Option
Remove CSS Class from Element With JavaScript (No Jquery)
Vue.Js Dynamic Images Not Working
How to Pass Parameters Using Ui-Sref in Ui-Router to the Controller
JavaScript String/Integer Comparisons
Jquery: Get Height of Hidden Element in Jquery
What Browsers Support Html5 Websocket API
How to Make a Link Open Multiple Pages When Clicked
Jquery: Simulating a Click on a ≪Input Type="File" /≫ Doesn't Work in Firefox
Html5 Canvas Todataurl Returns Blank
Difference Between Node Object and Element Object