You are here: irt.org | FAQ | JavaScript | Link | Q377 [ previous next ]
Use a frameset with a hidden frame:
<FRAMESET ROWS="100,*"> <FRAME SRC=page1.htm"> <FRAME SRC="blank.htm"> </FRAMESET>
Store the variable in the parent frame:
<SCRIPT LANGUAGE="JavaScript"><!-- var myname='me'; parent.myname = myname; //--></SCRIPT>
When the 2nd page is loaded access the variable in the parent frame.
<SCRIPT LANGUAGE="JavaScript"><!-- var myname = parent.myname; //--></SCRIPT>