How to prepare a text content to be readily saved by the user?
document.write("this text must be saved")
almost does the work, but the content of the page is perceived by the browsers as html, and will be saved as html. Can I change it to text/plain?
I know I can generate it with “data:” uri, but then there is no way to specify the default file name.
Thanks.
have you tried to do
? Though I don’t really understand how this suggests a file name when one tries to save. You’re charting new (and very under-specified) territory here it seems.