Trying to close window after alert
<p>Ok so I have a page that will post info to the database then it returns to a different page. The only thing is now they want the page to auto close once the alert comes up telling them the database stuff has been saved. I have it on a php page under the conditional if statement and then running javascript from there. The only thing that isnt working it the close. I have tried window.close and self.close and just close() but nothing seems to be working any ideas. Also trying this in Chrome.</p>

<pre><code>if( $_POST['finished'] == 'Send' )  
{

(this is just DB stuff here)

echo "&lt;script type='text/javascript'&gt;ConfirmStatus = confirm('Thank you for entering the information.')

if (ConfirmStatus == true) {

self.close();
}&lt;/script&gt;";    
}
</code></pre>
