I have lots of form validation going on.
When something fails validation, I highlight the offending field and
write an error message at the bottom of the form.
This was fine until I was trying to click on a submit button *of my own
form* and wondering why nothing was happening. I had made a mistake in
one of the fields so it had highlighted it, but when I corrected it I
made a *second* mistake which caused the same error. Due to this it
appeared that absolutely nothing was happening when I was pressing
submit.
So I got to wondering whether I should throw up an alert() box instead
(providing Javascript is enabled obviously). This provides immediate
and obvious feedback that an error has occured. However I cannot think
offhand of any sites which do this, so I guess there must be a good
useability reason for not doing it? Other than an extra click though I
cannot see the problem (but then I'm a newbie to this web authoring
lark)