Events - DOM tree

Registration
Events

The following events are registered:

Elements

The events are registered on the following elements:

Miscellaneous

Event properties



These properties belong to the last event that fired.

This page tests the DOM tree events.

These events do not work with traditional event registration.

Safari warning: Uncheck the window and document checkboxes immediately, before doing anything else. Any change to the control panel on the right adds a log entry, which fires DOM modification events that cause more log entries, which causes more DOM modification events, and Safari will go into an eternal loop.

(I was able to solve this problem in Firefox and Opera, but my solution doesn't work in Safari.)

Test elements

This <div> contains a small DOM tree that we're going to modify.

With the W3C DOM: Add, Remove, Change, Change attribute.

With innerHTML: Add, Remove, Change.