> I'm having a bit of trouble understanding why a click event attached
> to the document is being triggered when submitting a form through the
> enter key.

When you press Enter, Firefox (looks like this wasn't tested in IE)
triggers the click event on the default submit button. That bubbles up
to the document. Put an event handler on the submit button's click and
you'll see what I mean.

Reply via email to