title: Event when a web page gets focused
body: <p>Google Reader has a nice feature that when you switch to the web page from a different web page (giving the page focus) it will show you the updates there were accumulated while the page was unfocused.<br>
  <strong>Quick question #1</strong>: How do they do that?</p>
  
  <p>I figure that they might be binding to the mouse move events + keyboard events since I don't know any out of the box event that gives you that ability.</p>
  
  <p>Googling for that is a nightmare (focus, tab, web page, user).</p>
  
  <p><strong>Quick question #2</strong>: Is there some package out there that gives me that ability?</p>
  
  <p>I'm putting the jQuery tag as a beacon for all the web developers ninjas out there, but I don't really care about the framework (as long as its Javascript)</p>