wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Safari browsers focus property 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 "Safari browsers focus property" Watch "Safari browsers focus property" New topic
Author

Safari browsers focus property

Vinod Borole
Greenhorn

Joined: Feb 25, 2009
Posts: 26
I have a situation in which i have a parent window and i open a child window and on close of this child window i set my focus on the parent window and when the parent window gets a focus it refreshes... its my requirement. This works very wel in case of Mozilla 3.0 and in all versions of IE. But in case of safari when the child window closes the focus does not comes on parent automatically, in order to set focus on parent window i have to manually click on the safari browser twice and then i see the browser turning blue which it does when it gets focus and my parent window refreshes, this means my parent.focus() from child window does not works for safari.

Any body has any thoughts about this?

I am using Safari 3.2.2 on windows.
Vinod Borole
Greenhorn

Joined: Feb 25, 2009
Posts: 26
If anybody have any thoughts on this, please help me
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
The people that normally seem to answer question here live on the east and west coast of the US. So you posted it at 4AM EST, hence why no one answered it!

Should be window.opener.focus()

parent is for frames.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Safari browsers focus property
 
Similar Threads
Problem in Opening JPopupMenu
Window Problem
Implementing the child window in JSF.
parent-child window relationship
issue with session on restart of server