title: Is there any way to avoid a focusout event when the user switches to an entirely different window?
body: <p>I'm currently using</p>
  
  <pre><code>$('#input').blur(function(){...
  </code></pre>
  
  <p>in order to handle the loss of focus on an input in my web application.</p>
  
  <p>It behaves as intended for the most part, except I don't want the event to trigger when the user switches to a different window entirely. I noticed that the blur event is triggered even when I switch to my chrome dev tools. This behavior is unintended. I should also mention that using a focusout event produces the same results.</p>
  
  <p>As an example of what I want, you'll notice that if you search for things on google, there appears to be a focusout event when you click away from the input which makes the suggested searches disappear.
  However if you click on an entirely different window that isn't your browser, the results will remain on the screen as if the focusout had not been triggered. Is there some way to do this?</p>