Hi
I have a form which looks something like this:
<form name="tempForm" action="confirmation.php" method="post">
.. form contents ..
<input type="submit" name="submit" value="Submit" onClick="tempFunction();">
<input type="reset" onClick="ResetForms(1);">
tempFunction(); is a Javascript-function which, among other things, closes a childwindow. This childwindow must be closed before confirmation.php is fully loaded - otherwise the browser will come up with the nasty "Scripting error - continue loading scripts on this site, yes/no"-error.
The problem is that this error occurs sometimes - I suspect it to be caused mainly by caching/computer-hickups and what not. If there's even the slightest delay, confirmation.php is loaded before the childwindow is closed, and the error occurs.
Therefore, I'd like to delay the form-submitting (and not the onclick-event), if that's possible.
Thanks in advance! 🙂