Basic HTML version of Foils prepared 23 June 1997

Foil 46 The Confused Window Labelling Scheme

From JavaScript Tutorial for Certificate Course UC Web applications Certificate -- Summer 97. by Geoffrey C. Fox, Tom Scavo


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



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Apr 1 1998