Js create text file to be downloaded
30 Apr 2019 function download(filename, text) { var element = document. Here is what finally works on IE 10+, Firefox and Chrome (and without jQuery or On the other hand, IE has API for saving a blob, which can be used to create and download files.