Closing a window after form submission.

Closing a window after form submission.

I am trying to come up with a way to close a window immediately after a form in that window is submitted.  I do not want to wait for the response from the server.  The reason is that the response could take up to an hour and I don't want to have users waiting.  Is this possible with jQuery?

Here is what I am doing now:
  1. <script type="text/javascript">
  2.     function xSubmit (frm) {
  3.       frm.submit();
  4.       alert("The request has been submitted.");
  5.       window.close();
  6.       return false;
  7.     }
  8. </script>
  9. <form method=post action="_action_" onsubmit="return xSubmit(this);">
This only works in IE and Firefox.  I am hoping to come up with an alternative using jQuery that will work in IE, Firefox and Safari.

Any help would be greatly appreciated.