
February 10th, 2000, 09:55 AM
|
|
Registered User
|
|
Join Date: Oct 1999
Location: Bristol, VA USA
Posts: 6
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
I have a window that has a link on it to open an application. The window that spawned the new window is still open. I have a button on the application that will take them to the original window. (placing focus on it) If they closed the original window, then I want to open it again if they click the button. Basically, I need to check to see if the original window is open. If it is, I want to place focus on it. If the original window is not open any more, I want to open a window and bring the original page back up. Here is what I have:
<!--
function winclose() {
Win=top.opener;
if (window.Win!=true) {
window.open ("http://www.whatever.com");
}else{
Win.focus();
}
}
// -->
With this code it will always open the new window whether the original one is open or not.
Thanks for any help.
|