I want to have a confirmation from the user before they submit a form. This will prevent accidental POSTing of the form, that may be incomplete or incorrect.
Here is my
Try:
function confirm_update() { if(confirm("Do you wish to update details?")) { return true; } else { return false; } }