[Javascript] form confirmation

N Marino nmarino at jcu.edu
Tue May 29 13:39:28 CDT 2001


Thanks for the replies. Works wonderfully.

Nick Marino

> -----Original Message-----
> From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
> Behalf Of Peter-Paul Koch
> Sent: Sunday, May 27, 2001 4:05 PM
> To: javascript at LaTech.edu
> Subject: Re: [Javascript] form confirmation

> >I have an ASP form when the submit button is pressed the users record is
> >deleted from the database. Works great but I want to put a
> javascript that
> >prompts the user to confirm before the deletion takes place. I tried an
> >onClick with the submit button that asks the user if they're sure but no
> >matter if they answer ok or cancel, the deletion occurs.
>
> <FORM etc. onSubmit="return checkOnceMore()">
> <INPUT etc.>
> </FORM>
>
> function checkOnceMore()
> {
> 	return confirm('Are you sure you want to delete this
> record?'); // on one
> line!
> }
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>





More information about the Javascript mailing list