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.
![]() |
![]() |
![]() |
![]() |
contentWindow
The contentWindow property returns the window object for the iframe.
Syntax
iframeWindow = iframeElement.contentWindowParameters
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 |
![]() |
![]() |
![]() |
![]() |