I have a javascript file that contains a function that is called from an html file. This function opens another html window and assigns a value to a variable. The newly created html file, via onload in the body tag, then calls a different function in the same javascript file.

The problem is that in this second call to the javascript file, I need to access the value that was assigned to the variable in the first function call noted above. However, when the different function in the same js file is called from the new child html file, that original value is lost--the variable becomes undefined.

How do I get the variable to persist within the js file between calls from two different pages?

Many thanks for any suggestions.