How can I make a document where I have a textarea, and a save as button. When they click the button it comes up with a standard save as dialog. Probably to save a .txt file. I will save everything in the text area.
You won't be able to reliably do this cross-browser / cross-OS. You can probably do it in IE using execCommand, but that's IE-only, so not really suited to internet apps.
Hope this helps,
Dan
Coedit Limited - Delivering standards compliant, accessible web solutions
i suggest doing this with server-side code, such as PHP, ASP, JSP, ColdFusion, the list goes on. these languages are really more competent in file writing, and do not rely on certain operating systems, browsers, or enabling of javascript.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.