G
Guest
How can I close popup window automatically when I close the parent window
(the application itself)?
Thanks.
(the application itself)?
Thanks.
How can I close popup window automatically when I close the parent window
(the application itself)?
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();">
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.