TOC PREV NEXT INDEX

domref



contentWindow


The contentWindow property returns the window object for the frame.

Syntax

frameWindow = frameElement.contentWindow
 

Parameters

frameWindow is an object reference to the window object for this frame.

Example

f = document.getElementById("frame");
 
f.contentWindow.location = "http://mozilla.org";
 
f.contentWindow.history.back();
 

Notes

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"].

Specification

DOM Level 2 -- HTMLFrameElement


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX