HTML and CSS Reference
Because frames are just little windows, they share many of the same properties and
methods of the window object. See Table 10.11 for a list of properties and Table 10.12
for a list of methods.
Table 10.11 Properties of the frame Object
What It Describes
The document currently loaded in the frame.
An array of frames.
The number of elements in the frames array; that is, the number of frames.
The name of the frame assigned to the HTML name attribute.
The main window from which the child frames are defined.
The current frame.
The window that started the script.
The current window or frame.
Table 10.12 Methods of the frame Object
What It Does
Removes focus from the frame.
Clears a timed interval.
Clears a timeout.
Puts focus into the frame.
Invokes a print dialog box.
Sets a timed interval.
Sets a timeout.
Unsets the watchpoint.
Sets a watchpoint on a frame property; if a property changes, calls a function.
Creating Menus and Navigation Bars. Because frames can be used to divide a
page, it is common to use one of the frames as a menu of items and the other as the main
page where a page is loaded depending on the user's selection. If one frame contains a