How can I make a browser display a "save as dialog" so the user can save the content of a string to a file on his system?
var myString = "my string with some stuff";
In case anyone is still wondering...
I did it like this:
<a href="data:application/xml;charset=utf-8,your code here" download="filename.html">Save</a>
cant remember my source but it uses the following techniques\features:
Found the reference:
EDIT: As you can gather from the comments this does NOT work in