Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] form confirmation


  • From: javascript@xxxxxxxxxx (N Marino)
  • Subject: [Javascript] form confirmation
  • Date: Tue, 29 May 2001 14:39:28 -0400

Thanks for the replies. Works wonderfully.

Nick Marino

> -----Original Message-----
> From: javascript-admin@xxxxxxxxxx [mailto:javascript-admin@xxxxxxxxxx]On
> Behalf Of Peter-Paul Koch
> Sent: Sunday, May 27, 2001 4:05 PM
> To: javascript@xxxxxxxxxx
> 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@xxxxxxxxxx
> http://www.LaTech.edu/mailman/listinfo/javascript
>