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


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

in Table To:


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