Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

window.onfocus in mozilla doesn't work: what to use?  RSS feed

 
Giulietta Blumarine
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I have to run a script when I load the HTML page, but I can't use window.load (because the page is the result of more jsp and window.load is already used in another jsp, different from mine).
I would like to use window.focus but in Mozilla doesn't work!
What Could I use?

Thanks
Giu
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can do something like this

Eric
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!