advertisement -- please support sponsors

programming:
preserving variables between pages

Question: Is there any way to preserve a JavaScript variable from one HTML page to the next, short of using JavaScript to write the variable's value to a file?

Cookies make it possible not only to preserve variables between pages, but between browsing sessions as well. For more information on cookies and how to use them, read Persistent Cookies.

Charlton Rose
23 August 1997