Is That Your Final Answer?
Now, lets see how we can use the confirm() method to let our users decide whether they really wanted to submit that form, or if they would be wise to take one more look at what they entered.
Note that we hardly had to include any logic in the body of the validation function. The confirm() method returns true or false, based on the whether or not the user clicks 'OK'. Then we return whatever the confirm() method returns as the return value of the function. Recall from our first example that the 'return' keyword in the onSubmit event-handler places the submission of the form in the hands of the return value of the function.
Here we display the value of the form contents by accessing the forms array of the document object (document.forms), and the referring to the fields by their name attribute. We access the  index because it's the only form in the document. If you more than one, you would use the appropriate index.
If You Understand Now, Click OK
Previous Page: Submission Hold
Revised: December 7, 2000