[Javascript] form confirmation

Andrew Dunn adunn at mail.interworx.com.au
Sun May 27 17:58:17 CDT 2001


Nick,

Put the call to the function in the <FORM> tag. EG. <FORM action=""
method=post onSubmit="return deleteWhatever()">



-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Nick Marino
Sent: Monday, 28 May 2001 4:04 AM
To: javascript at LaTech.edu
Subject: [Javascript] form confirmation


Good afternoon,

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.

Thanks,

Nick Marino


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript





More information about the Javascript mailing list