Some time ago I built a tool with HTML and Javascript to help debug a family of web applications.
Basically, the tool consists of a static HTML page and a collection of scripts that load a given system into an iframe and then allow you to inspect various elements of that system without the developer having to parse the source code.
To do this, the tool must identify when the user has accessed a certain screen and then inspect the elements.
However, systems also used frames, sometimes on more than one level. My solution was to go through this "tree" of frames by adding listeners to identify when each frame was loaded.
My question is: is there an elegant solution using jQuery or javascript to identify the loading of a frame hierarchy?