Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: javascript alert ?


Message #1 by "Getnet" <admin@n...> on Wed, 18 Jul 2001 21:10:30 -0700
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
>


  Return to Index