Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Opening parent window if I close the chile window

 
mou haj
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
mou haj
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic