You are here: irt.org | FAQ | JavaScript | Window | Q1610 [ previous next ]
In the opener window:
<script language="JavaScript"><!-- var a_variable = 'Hello world'; var windowReference = window.open('popup.htm','windowName'); if (!windowReference.opener) windowReference.opener = this.window; //--></script>
And then in popup.htm:
<script language="JavaScript"><!-- alert(opener.a_variable); //--></script>