I have a statement to submit a form:
FormCheck(this.form, '', '')
You are approaching this problem from the wrong angle. Instead of having the FormCheck function execute when the button is clicked, you should make sure that the FormCheck function is executed when the form is submitted?no matter how. To do so, remove it from the button’s OnClick event and place it in the Form’s OnSubmit event.