[thelist] Q re: onSubmit with Mozzila, et al

James Aylard evolt at pixelwright.com
Mon Nov 24 10:56:36 CST 2003


angello wrote:

> try to add your onSubmit to <form> as well as to <input type="submit"
> /> i.e.
> <form action="" method="post" onSubmit="return
> check_registration_form(this)">
> <input type="submit" onSubmit="return check_registration_form(this)"
> class="button" value="Submit" />

    The <form> element is the only one with an onsubmit handler. It makes no
sense to add onsubmit to any other element.

James Aylard



More information about the thelist mailing list