Email conversation
From | Krothapalli Naveen Dath |
To | Me |
Subject | How to write to a text file using javascript |
Date | 19 August 2005 08:49 |
hai,
i want to know how we can write to a file using javascript.
plz relpy as soon as possible.
----------
Thanks and regards,
Naveen
From | Me |
To | Krothapalli Naveen Dath |
Subject | Re: How to write to a text file using javascript |
Date | 19 August 2005 10:21 |
Naveen,
> i want to know how we can write to a file using javascript.
> plz relpy as soon as possible.
For security reasons, JavaScript cannot write to files.
http://www.howtocreate.co.uk/tutorials/javascript/security
If you want to store data on the client's computer, you may store cookies.
http://www.howtocreate.co.uk/tutorials/javascript/cookies
If you want to write to a text file, you should create the text file on the
server, and have a server side process edit it.
(Note that it may be possible to use plugins to store text files, but I
refuse to work with plugins, so I do not have any answers here.)
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/