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