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