I have this code and when you make a mistake in the input, it will give you the error message, but when you click OK, then you can go to the next page. Also, if there is no error, then it wont let you submit it. I have been confused about this forever, here is the code:
<script...