window.close() in sucess function
<p>I have a typical ajax post type with a success function.
I have tried in many different ways to close window on success. 
But only after message is revealed and can be read.</p>

<pre><code>$.ajax({
type:"POST",
url:"file.php",
data:info,
success:function(){
$('#load').empty();
$('#information').html('Thank you!');
\\setTimeout('window.close()',2000); \\
}
});
return false;
</code></pre>

<p>Many thanks!</p>

<p><strong>Page is opened with "window.open()"</strong></p>
