Javascript countdown to window close
<pre><code>$(function(){
      var count = 5;
      countdown = setInterval(function(){
        $(".countdown").html("Closing in " + count + "...");
        if (count == 0) {
          window.close();
        }
        count--;
      }, 1000);
    });
</code></pre>

<p>Doesn't seem to be working for me. But if I change <code>window.close();</code> to <code>window.location = "http://google.com";</code>, it works. Any help on closing a window after a countdown would be a great help!</p>

<p>Thank you!</p>
