javascript - Write text content to a new window (or change the type of content from html to text)? -
how prepare text content readily saved user?
document.write("this text must saved")
almost work, content of page perceived browsers html, , saved html
. can change text/plain
?
i know can generate "data:" uri, there no way specify default file name.
thanks.
have tried
document.open('text/plain'); document.write('save me');
? though don't understand how suggests file name when 1 tries save. you're charting new (and under-specified) territory here seems.
Comments
Post a Comment