submit and reset

Test page.

Events overview page.

The submit event fires when the user submits a form. The reset event fires when the user resets a form.

Event IE 5.5 IE 6 IE 7 IE8b1 FF 2 FF 3b5 Saf 3.0 Win Saf 3.1 Win Opera 9.26 Opera 9.5b Konqueror 3.5.7
On the window
No Yes Yes Minimal No

Are these events available on the window?

  • Opera allows registration on the window only when you use attachEvent.
On the document
No Yes Yes Yes Yes

Are these events available on the document?

On a form
Yes Yes Yes Yes Yes

Are these events available on a form?

Event bubbling

The events should bubble.

Untestable Yes Yes Incomplete Almost Yes
  • When using attachEvent registration, Opera fires the event on the window before the event on the document. (The event isn’t available on the window in any other registration.)
  • When using addEventListener in the capturing phase, Opera 9.26 only fires events on the document: they aren't captured any further.
Prevent default
yes yes yes yes yes