• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Rakesh Kumar
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!