Why can't you open the link in the following demo:
http://html5-demos.appspot.com/static/a.download.html
You cannot even right click and open it in a new tab/window. Is there any setting in the browser I need to customize?
Why can't you open the link in the following demo:
http://html5-demos.appspot.com/static/a.download.html
You cannot even right click and open it in a new tab/window. Is there any setting in the browser I need to customize?
Here is the function for downloading any file as blob. (tested on IE and Non-IE)
Note: Please change the type of your file, if needed.
If the data is coming from Ajax then you can add
/////////////////////////////////////////////////
This demo uses Blob URL which is not supported by IE due to security restrictions.
IE has its own API for creating and downloading files, which is called
msSaveOrOpenBlob
.Here is my cross-browser solution that works on IE, Chrome and Firefox: