BillLumbergh
Programmer
We're building a site that must function on both IE & Netscape for both PC & Mac. We're seeing the following issue and cannot find anyone else documenting the same problem, but I think someone must have come across this before and might know the solution:
We're running some Javascript form validation when the user clicks the submit button (the button is an input of type 'button'). When the validation fails, the function launches an alert box to indicate the error as well as returns false. This return of false should stop the submit from taking place. On PC, this is working fine. However, on Mac, in both Netscape and IE, the page submits itself even though the validation fails.
How do we stop this submit from taking place? We're already returning false, I would have thought that would do it. Anyone ever seen this kind of behavior, or know how to fix it?
We're running some Javascript form validation when the user clicks the submit button (the button is an input of type 'button'). When the validation fails, the function launches an alert box to indicate the error as well as returns false. This return of false should stop the submit from taking place. On PC, this is working fine. However, on Mac, in both Netscape and IE, the page submits itself even though the validation fails.
How do we stop this submit from taking place? We're already returning false, I would have thought that would do it. Anyone ever seen this kind of behavior, or know how to fix it?