just use the return keyword or make it part of a function
<form name="test_form" method="post" action="myasp.asp"
onSubmit="return(Confirm('Are you Sure ?'))">
if (Confirm('Are you Sure ?'))
{
// answer is yes, so submit
document.<form name>.submit();
}
else
{
// they said no.
}
At 09:36 20/07/01 -0700, you wrote:
>Thanks-- this is what I asked for, but now I have one more problem. When
>the user chooses Cancel, I would like the script NOT to move onto the next
>question in this testing program. If the user chooses OK they it WOULD move
>on to the next question.
>
>I have inclueded the Script as it is, but don't know how to get it to do
>what I mentioned above.
>
>
>
>
>
>Any help would be appreciated
>Larry
>