> Uwe Voelker wrote: > > >>>adding an onClick handler to a Submit object may shortcut form submission >>>in older Netscape browsers, bypassing any onSubmit handlers (meaning, >>>you're >>>onClick better do all the same form validation that you were planning >>>on having >>>completed by the onSubmit). >>> >> >> >>Okay, I got that. I have experienced some problems in this field with >>Internet Explorer. I could solve the problem by putting a "...; return >>false;" behind the function call. >> >>
ooooh, yeah, that's right i *do* remember IE getting funky with this, now. if there's a problem with a browser not accepting something...it's hard to assume it's not Netscape that is the one being wonky. >>When I use "onSubmit" do I have to write "return validate(this);" or >>just "validate(this)"? >> They should both work, adding the return is more explicit though, and in my opinion, makes the flow of control more readable/understandable, because it tells you that you are 'return'ing a value back to the caller of your custom handler. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
