like this
<a here to Close</a>
<input type="submit" value="Click here to Close"
>
hth
tony
-----Original Message-----
From: Brrrian [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 09, 2003 9:13 PM
To: CF-Talk
Subject: _javascript_ window.close() twist
I'm chasing a _javascript_ issue. Main page opens a child window which
populates with a menu. Choosing a menu item opens the menu selection in
the
parent window. This is working well.
function popUp(page, name, details) {
newWin=window.open(page, name, details);
newWin.focus();
return false;
}
from theChildWindow I use a function
function loadinparent(url){
self.opener.location = url;
}
The user can continue to make choices from the Menu... each time
populating
the Parent Window until the user is done working.
------------
The Issue
------------
When the user wants to LogOut I need to Close the Child Window. I can't
get anything to work.
theChildWindow.close(); or newWin.close();
The parent seems to loose track of the child window. I get errors like
theChildWindow is undefined... or newWin is undefined.
I spent the weekend surfing _javascript_ forums etc... no luck yet! Help!
;)
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

