Communicating Between Frames
The Document Object Model includes several properties that apply to frame and window objects that make referencing different frames much easier. These properties are self, window, parent, and top and their meanings are as follows:
self or window— These properties are used to refer to the current window or frame.
parent— This property is used to refer to the window or frame