Is it possible for me to write my javascript variables to a text file?
document.write() cannot be written to text file.
Printable View
Is it possible for me to write my javascript variables to a text file?
document.write() cannot be written to text file.
I think it can not be done because java script run on client side. And this will have some security issues.
JavaScript is contained to the web page it is currently on due to security reasons. Even access to the clipboard is limited in JavaScript. You can save your variables in cookies however, if what you intend to do is to have your script remember user settings (much like the collapsible forums script in the CodeGuru forums list does.)
Also, you put this in the wrong forum. JavaScript is a client-side language and threads about it should be put in the Client-side scripting forum.
[ moved ]