I have a form with an onSubmit call to a function checkJobDone(). What I want is for the action (to load another page) to be executed ONLY if checkJobDone() returns true. Otherwise the function displays an alert() and should not execute the action. The check works; the alert() is displayed when it should but at present it always carries out the action and loads the next page...
Thanks chaps G
Sorry guys - I've found the answer. return checkJobDone(). I thought I'd tried that...
This topic is now closed. New replies are no longer allowed.