Closures

This page appends two DIVs to the contents of the BODY tag using javascript.

It relies on closures to maintain a linked-list of functions to call during the BODY's onload event. Each bit of code which adds an event does not need to know if there are any existing events and won't overwrite them.

back