Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Safari browsers focus property

 
Vinod Borole
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If anybody have any thoughts on this, please help me
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this for more information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic