Thomas2
10-14-2003, 04:08 AM
Hi,
I put an onClick event handler in the Input-tag of form which should trigger a javascript function if the form is submitted but nothing happens. I also tried using onSubmit in the Form-tag but it does not work either. Using onClick in the Form-tag or Textarea-tag runs the script when I put the cursor in the Textarea field which is not what I want however.
It all works OK if the function is triggered from outside the form (e.g. from a link).
Any ideas what is going on here ?
I put an onClick event handler in the Input-tag of form which should trigger a javascript function if the form is submitted but nothing happens. I also tried using onSubmit in the Form-tag but it does not work either. Using onClick in the Form-tag or Textarea-tag runs the script when I put the cursor in the Textarea field which is not what I want however.
It all works OK if the function is triggered from outside the form (e.g. from a link).
Any ideas what is going on here ?