title: Check if Form has focus or is active
body: <p>I have a Form that shows a Notification Window. But I want to show the popup only when the Form doesn't have focus or is not active, something like this:</p>
  
  <pre><code>if (!form.Active)
  {
     //Do something
  }
  </code></pre>
  
  <p>Is there a way to do it?</p>