[JavaScript]

JavaScript, Windows and Frames

frames and window objects
Browser showing two frames, top and bottom.

An HTML FRAME is represented by a JavaScript Window object. A window object has various attributes:

document, location
the HTML page in the window and its location (URL)
frames[ ], length
the sub-frames / windows if any, and the number of them
self, parent, top
parts of the frame / window tree
etc. ...
NB. Some of these attributes are not set until the document has been loaded and may have default "initial" values if used before that time.

Some examples:



Copyright © L.Allison Department of Computer Science, Monash University, Australia 3168 / 1997