How can I know when the DOM is loaded? Learn how I approached this annoying problem by using an Event Adapter.
The for in is complicated by the prototype chain,
and affected by the DontEnum attribute.
Learn how for in is
broken in IE, and how to work around the problem.