Closing the child windows using javascrip
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Yogi_kop
Posted On:   Saturday, April 21, 2001 12:19 AM

Hello friends,
My application requries to close all child windows when perent window is closed.
To close the perent window I am using
"session.inactivate()"

How To CLOSE THE CHILD WINDOW WHEN CLICK ON THE BUTTON IN PERENT WINDOW.

Thanks

Yogi

Re: Closing the child windows using javascrip

Posted By:   Firat_Tiryaki  
Posted On:   Saturday, April 21, 2001 02:44 AM

You should include the same javascript
in the child windows head part and use the closed property of the main window.
The child windows you opened will look
like this ;






----your content here----




The page runs the checkMainWindow() function when it loads.
The function looks if the main window
is closed with self.opener.closed
property and runs itself recursively.
This means that the child window is
checking if the main window is closed or
not periodically.
About | Sitemap | Contact