title: Is there a browser event for the window getting focus?
body: <p>Is there a way that when I click on my browser, and give it focus, to run a method once? And then when the browser loses focus and then gets the focus back to again run that method only once, again.</p>