| 8:49 pm on Jan 27, 2007 (gmt 0)|
Did you try window.opener.focus();?
To re-focus on objects in the window opener,
| 6:16 pm on Jan 29, 2007 (gmt 0)|
Thanks rocknbill. I was hoping to do all of the control from within the first window so I'm not sure opener is the way to go though.
| 11:30 pm on Feb 9, 2007 (gmt 0)|
My original code, i.e. just the simple code to focus back on a window once a second window opens, works on IE and Opera. Firefox seems to have an issue (maybe intentional) that if I open a second window then I cannot take the focus back from it. This may be a security measure of some kind but I'd like a way around it. Anyone have ideas?
| 1:14 am on Feb 10, 2007 (gmt 0)|
rocknbil, it turns out I could use your method, at least at one point in my code. However, even this didn't work on Firefox...
| 7:21 pm on Feb 10, 2007 (gmt 0)|
Seems that it might be intentional:
I can see why they'd want to not allow a window to keep grabbing focus back but I'd think a window would be allowed to give focus away to it's parent if it wants to.
| 1:13 pm on Feb 12, 2007 (gmt 0)|
Well there may be something else wrong. I know this because I have an application that takes the data out of a text box in the main window, opens it in a full screen new window for editing, then when you're done editing puts it back in the original box and closes the new window. Although you can't close or alter the opener itself, you should be able to work with items in the opener document.
Let's see some code, Fotiman will set you up. :-)
| 7:01 pm on Feb 12, 2007 (gmt 0)|
I found a workaround which was to not totally hide the bottom (opener) window so the user could still see the important part. That way the user gives focus back to it.
rocknbill, thanks for the help but I think this really is a restriction put in place by the Firefox folks specific to focus to avoid popunder windows. Makes sense if you don't have a popup blocker I guess but if you do and someone allows popups for a specific site then those popups should be allowed to manage focus I think... By breaking the focus functionality you're just restricting what web-based apps are allowed to do.