title: window.close() doesn't work - Scripts may close only the windows that were opened by it
body: <p>I'm having a problem always when I'm trying to close a window through the <code>window.close()</code> method of the Javascript, while the browser displays the below message on the console:</p>
  
  <pre><code>"Scripts may close only the windows that were opened by it."
  </code></pre>
  
  <p>This occurs in every part of the page. I can run this directly of a link, button, or a script, but this message always are displayed.</p>
  
  <p>I'm tried to replace the <code>window.close();</code> method for the functions (or variants of these) below, but nothing happened again:</p>
  
  <pre><code>window.open('', '_self', '');
  window.close();
  </code></pre>