This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Focus on child window after parent window gets refreshed 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 "Focus on child window after parent window gets refreshed" Watch "Focus on child window after parent window gets refreshed" New topic
Author

Focus on child window after parent window gets refreshed

nancy andrew
Ranch Hand

Joined: Jan 19, 2010
Posts: 30
On clicking a particular button in a web page, a pop up appears. And after clicking submit on the pop up, my parent window should get refreshed but the pop up window should be focused. But i find the pop up window goes behind the parent window screen and i couldn't focus on the pop up window using window.focus() method. Kindly provide a solution to place the focus on the pop up window while the parent window refreshing should also happen. And am using IE8. I have tried the following approach.


var popup;
parentwindow = window.open(.........);
//...parentwindow refreshing code.
popup = window.open(.....);
popup.focus(); or popup.window.focus();
Deepshan Shetty
Greenhorn

Joined: May 28, 2012
Posts: 28
Can anyhow help with this??
Facing the same issue
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Focus on child window after parent window gets refreshed
 
Similar Threads
Check if popup window is already open from parent window?
page refresh , have to use ajax
Submitting from pop-up window
Calling ajax
how to close child window