Greetings,
I\'m working on a JS-based application that does some complex work and logs some information (actually, up to hundreds of lines) on a
You can set the content-type in the data:
URL, Something like this:
data:text/plain,this is some text
However, that still has the problem of the browser automatically rendering it as text. You really have two options that i can see. One is that you set the type to some kind of binary type so that the browser doesn't try and render it, or that you have the type as text/plain and get the user to right-click and save as. Maybe something here can help?