The JavaScript hierarchy may be illustrated as follows:
|
top.frames[frameIndex].document.
|
forms[formIndex].elementName.value
|
where frameIndex and formIndex are usually numbers
|
The frames array may also be indexed by name. For example, frames["frameName"] is sometimes more convenient
-
One can use eval to generate framename
|
window and Frame are objects reflecting hierarchy
|
document, Form, history, Link, and location are objects defining parts of a window or frame
|
anchors, links, forms, frames, applets, and images are property arrays
|
top, parent, and self are properties of frames and windows
|
All of the above are defined within a single browser window
|
opener is a property of window, which contains the name of the window that called open to create the current window
|