This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Applets and the fly likes focus is not coming event after giving   window.focus() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "focus is not coming event after giving   window.focus()" Watch "focus is not coming event after giving   window.focus()" New topic
Author

focus is not coming event after giving window.focus()

Rakesh Kumar
Ranch Hand

Joined: May 30, 2006
Posts: 63
Dear friends,
I am opening a window which loads an applet and after that i am caliing like below.

var win= window.open()
win.focus();
But the focus is not coming on it.

if you have any idea please share it.
Thanks
Rak
Rakesh Kumar
Ranch Hand

Joined: May 30, 2006
Posts: 63
Cod eis as below


parentframe.location.href="dummy.html"
var win = window.open("applethtml")
win.focus()


Actually focus is going to parentframe from wheer applet popped out.Eventhough
I am calling " win.focus()" it is not focussong to applet window.

Please share if you guys have any idea on this how we can bvring the focus on window only.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: focus is not coming event after giving window.focus()