Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q836 How can I save the contents of a form to a local text file by pressing the Submit button?

irt.org | Knowledge Base | JavaScript | File | Q836 [ previous next ]

Q836 How can I save the contents of a form to a local text file by pressing the Submit button?

You can't write to files on the client using Client Side JavaScript. This would be a serious breach of JavaScript security if this were possible.

Bradley Zohn writes:

I believe the answer is misleading. You can write to a local file using PrivilegeManager and the UniversalFileWrite to write local files. While technically it requires calling java.io.OutputStreamWriter, it certainly can be done using javascript.

Feedback on 'Q836 How can I save the contents of a form to a local text file by pressing the Submit button?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.