Question: this code works fine when I open one pop-up window, hit the "save" button without closing it. But, when I open the "name" window, do not close it, open the "lookup" window also, do not close it and hit the save button: The alert message comes up and focusses on the "lookup" (the second) window. So I close it and then hit "save". Now ideally, it should alert me saying another window ("name" window)is open. But it does not. It "saves" the form. How do I fix this?
Thanks in advance! [ July 21, 2006: Message edited by: Bear Bibeault ]
Joined: Jun 30, 2006
You are updating the winRef everytime you open the window. Try to use an array of window references.
var winReferences = new Array();
so, when you open a window, winReferences[ winReferences.length ] = window.open(....).
and change your checkPoppedWindows function to something like,