title: Getting "Scripts may close only the windows that were opened by it" error
body: <p>I have opened a window from another page. On button click, I want to close this window. However, the browser is complaining that "Scripts may close only the windows that were opened by it". </p>
  
  <p>I tried:</p>
  
  <pre><code>window.open('', '_parent', '');
  window.close();
  </code></pre>
  
  <p>but its not working. 
  Please help.</p>