Im a little confused, but here what you probably need to do. Use the onload and onunload event handlers to set flags when the windows are open. Have a global counter variable on the opener that you append to each window name so:<br><br>"mywin" + global_counter = window.open(...your stuff here)<br>now, when the window opens, have a variable (well call it opener_ref) in the window you open that matches in name the mywin + global_counter. In the onunload handler of the opened window, set the mywin variable to false, before doing anything, always test if(mywin2){...}<br><br>If its just one window its much easier. Have one variable in the opener that tests a flag set when the window opens before doing any interwindow communication.<br><br>Hope I helped<br><br><A HREF="mailto:jared@aauser.com">jared@aauser.com</A>