Confirmation dialog box
Language: Javascript
Description:
I am calling confirmForm() function from a button with an onClick, but
you can call it from the onSubmit handler when you send a form. If
they click ok, it returns true, and the form is submitted, if they
click cancel it returns false, and the form submit is cancelled.
Remember you must use return before your function call:
return confirmForm()
Code
|