title: Closing a window after the page is fully loaded
body: <p>I am trying to write a JavaScript function that will work on Firefox 5.0. I need the page to fully load, and then close. What I'm trying to do is:</p>
  
  <pre><code>var temp = window.open(link);
  
  temp.window.onload = function () {
      temp.window.close();
  }
  </code></pre>
  
  <p>But so far all it does is open the new tab, but doesn't close it.</p>
  
  <p>Is there any way to successfully accomplish this?</p>