Tuesday, 15 June 2010

javascript - window on focus misbehave in mozilla -


Using jquery $ (window) I'm trying to call the function while focusing on windows or tabs. Focus function.

The problem is in Mozilla, which is being called repeated or endless, whereas its behavior in Chrome generally occurs (the function is called once only when the window is centered).

  $ (document) .ready (function () {$ (window). Focus (function () {location.reload ();});});  

Has anyone got an alternative solution for Mozilla? Thanks, and sorry for bad english

I'm using Mozilla version 36.0.1


No comments:

Post a Comment