*
The moose likes HTML, CSS and JavaScript and the fly likes Opening parent window if I close the chile window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Opening parent window if I close the chile window" Watch "Opening parent window if I close the chile window" New topic
Author

Opening parent window if I close the chile window

mou haj
Ranch Hand

Joined: Sep 12, 2001
Posts: 81
Can anyBody help me.
I am opening an window from a browser window
Now i want if I close this child window the original window to open even if it is minimised
Thanks
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Mou
Just before the child window closes have it call 'opener.focus()' that'll give focus to the window that opened the child window and should make it pop back up if it was minimized.
hope that helps
Dave


Dave
mou haj
Ranch Hand

Joined: Sep 12, 2001
Posts: 81
Dave Im doing something like this
<A HREF="#" onClick="top.close();opener.focus();">
but the parent window is not poping up if it is minimised
Can you please some solution to this
Thanks
 
 
subject: Opening parent window if I close the chile window
 
Similar Threads
parent-child window relationship
Close Popup and refresh parent
opening multiple frames in a loop
how to close parent window?
Disabling the close (X) button of the browser