contentWindow
The contentWindow property returns the window object for the iframe.
Syntax
iframeWindow = iframeElement.contentWindow
Parameters
iframeWindow is an object reference to the window object for this iframe.
Example
i = document.getElementById("iframe"); i.contentWindow.location = "http://mozilla.org"; i.contentWindow.history.back();
Notes
You can also get to the window object through a named iframe. For example, an iframe with the name="myFrame" can refer back to the window object as window.frames["myFrame"].
Specification
Netscape Communications http://developer.netscape.com |