[thelist] JAVASCRIPT: confirmation dialog box that actually works!

Saila, Craig Craig.Saila at bgminteractive.com
Thu Aug 29 11:45:01 CDT 2002

> -----Original Message-----
> From: Chris W. Parker [mailto:cparker at swatgear.com]
> Sent: August 29, 2002 12:33 PM

> i am creating a small script that as of now immediately
> creates an email and sends it. i'd like to add a confirmation
> box when the user press the submit button and ask them to
> verify the important information in the form.

This will submit the form if they hit OK, and will do an alert, and not
submit if they cancel:
 if(!confirm('You confirm this information is correct?')) {
alert('Please fill in the correct information then.'); return false }

More at:


Craig Saila
craig at saila.com : http://www.saila.com/

More information about the thelist mailing list