escaperanger
05-09-2004, 09:06 PM
I am hoping someone can assist me with a part of the form validation I am working on. Here's an overview.
The user fills out a form.
The user clicks the submit button.
The form's onsubmit handler calls a function to validate the form.
If there are fields missing values, the function alerts the user with a message.
The user clicks 'OK' in the alert box.
The function returns false.
The form is not submitted.
Then I would like the page to jump to an anchor located at the top of the form.
How do I make the page move to the anchor from within the function that was called?
Thanks for the assistance.
The user fills out a form.
The user clicks the submit button.
The form's onsubmit handler calls a function to validate the form.
If there are fields missing values, the function alerts the user with a message.
The user clicks 'OK' in the alert box.
The function returns false.
The form is not submitted.
Then I would like the page to jump to an anchor located at the top of the form.
How do I make the page move to the anchor from within the function that was called?
Thanks for the assistance.