I have a form (inside a pop up window) which it's action is cgi.
This cgi returns a message in the same window,
which I want to close after 2 secs.
It seems that once the cgi is performed, I loose
control over the window.
(If I replace 'return true' with 'return false', the window is closed
after 2 secs, but then not submitted of course).
TMy pop up has a name (x), but x.close() does not work
as well.
I tried:
<script language="Javascript">
function closeWin()
{ setTimeout('self.close()',2000); //x.close() does not work as well
return true;
}
</script>
<body>
<form action=" onsubmit="return closeWin();">
Any ideas?
Thanks
This cgi returns a message in the same window,
which I want to close after 2 secs.
It seems that once the cgi is performed, I loose
control over the window.
(If I replace 'return true' with 'return false', the window is closed
after 2 secs, but then not submitted of course).
TMy pop up has a name (x), but x.close() does not work
as well.
I tried:
<script language="Javascript">
function closeWin()
{ setTimeout('self.close()',2000); //x.close() does not work as well
return true;
}
</script>
<body>
<form action=" onsubmit="return closeWin();">
Any ideas?
Thanks