Closing popup window when closing parent window?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I close popup window automatically when I close the parent window
(the application itself)?

Thanks.
 
How can I close popup window automatically when I close the parent window
(the application itself)?

That will depend how you've launched the popup - post your code...
 
when you create a popup, it returns a window handle. save this handle,
and in the body onunload event close it.

<script>var popup = null;</script>
<body ononload="if(popup) popup.close();">


-- bruce (sqlwork.com)
 
Back
Top