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 IE8rc1 as IE7 IE8rc1 as IE8 FF 2.0 FF 3.0 FF 3.1b2 Saf 3.0 Win Saf 3.1 Win iPhone 3G Chrome 1.0 Opera 9.62 Opera 10a Konqueror 3.5.7
On the window
No Yes 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 Yes

Are these events available on the document?

On a form
Yes Yes Yes Yes Yes Yes

Are these events available on a form?

Event bubbling

The events should bubble.

Untestable Yes Yes Yes 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.) An event on the window is equal to an event on the <body> in order to support ancient inline event handlers such as <body onload="something()>.
  • When using addEventListener in the capturing phase, Opera only fires events on the document: they aren't captured any further.
Prevent default
yes yes yes Yes yes Yes
Event IE 5.5 IE 6 IE 7 IE8rc1 as IE7 IE8rc1 as IE8 FF 2.0 FF 3.0 FF 3.1b2 Saf 3.0 Win Saf 3.1 Win iPhone 3G Chrome 1.0 Opera 9.62 Opera 10a Konqueror 3.5.7

These compatibility tables are sponsored by

Google