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 checboxes immediately, before doing anything else. Any change to the control panel on the right adds a log entry, which fires DOM modification events. which cause more log entries, which cause more DOM modification events, etc. Safari will go into an eternal loop.

(I was able to solve this problem in Firefox and Opera, but for some reason 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.