CodeCharge StudioThis event occurs on the client side when the user submits a form but before the data is sent to the server from the form. It can be used for the validation, to confirm the submission or alter control values.
<script language="JavaScript">
function page_NewRecord1_OnSubmit() {
return confirm('Submit form?');
}
function bind_events() {
check_and_bind('document.NewRecord1','onsubmit',page_NewRecord1_OnSubmit);
forms_onload();
}
window.onload = bind_events;
</script>