Uwe Voelker wrote:

>>  Submit objects should not contain an onClick
>>  handler, better off either:
>>    a) moving the call to item_delete() to an onSubmit handler in the 
>> <form>
>>    b) or changing the input type of 'action' from 'submit' to 'button'
>>       and adding a 'document.forms['the_form_name'].submit() in the
>>       onClick handler.
> 
> 
> 
> Interesting. Could you please explain why?
> 


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).

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to