You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is
highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If
there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.
The contentWindow property returns the window object for the frame.
frameWindow = frameElement.contentWindow
frameWindow is an object reference to the window object for this frame.
f = document.getElementById("frame");
f.contentWindow.location = "http://mozilla.org";
You can also get to the window object through a named frame. For example, a frame with the name="myFrame" can refer back to the window object as window.frames["myFrame"].
DOM Level 2 -- HTMLFrameElement