Javascript- document/window has focus?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/497094/how-do-i-find-out-which-javascript-element-has-focus">How do I find out which Javascript element has focus?</a>  </p>
</blockquote>



<p>Is it possible to check in Javascript whether the current window has focus?</p>
