I have a page with multiple links and buttons. Fo example, let us condsider I have:
1) a href for "name". This hyper=link will open a pop-up window
2) a button called "lookup". This button will open a another pop-up window
var ret = true;
if( winRef != null && !winRef.closed)
alertt("You are in the process of updating information.\nPlease finish
this process or close the window.");
ret = false;
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 ]