File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Safari browsers focus property" Watch "Safari browsers focus property" New topic

Safari browsers focus property

Vinod Borole

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

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

Joined: Nov 08, 2001
Posts: 15385
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.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

Please read this for more information.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Safari browsers focus property
It's not a secret anymore!