Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic