title: Check if a popup is being opened
body: <p><em>Problem:</em>
  Hi, I am giving a sensitive service to my customers. However some of my customers are opening advertisement popups (using JavaScript) on their pages that my service is included, which is creating problems for us.</p>
  
  <p>My service to these customers includes a <strong>.js</strong> filed included on their websites <strong>(this js file is hosted on my server)</strong>.</p>
  
  <p><em>What I need:</em></p>
  
  <ol>
  <li><p>Is there a way I could add some functionality to my js file to stop functioning if the page which it is included in, tries to open a popup?</p></li>
  <li><p>If number 1 is not possible, is it possible to stop any popups from being opened?</p></li>
  </ol>
  
  <p><em>(Don't need a solution based on browser addons and similar things...)</em></p>