JavaScript Reference/Javascript Properties/contentWindow
"contentWindow" Example
<source lang="javascript">
<html> <body> <script language="JavaScript">
function function1() { alert(document.all.myFrame.contentWindow.location); }
</script>
<iframe id="myFrame" src="Http://www.wbex.ru" style="width:200;">
</iframe>
<button onclick="function1();">Location of Frame</button>
</body>
</html>
</source>
"contentWindow" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<frame> <iframe> | +----------------+--------------------------------------------------------------+
</source>
"contentWindow" Syntax and Note
<source lang="javascript">
Note: Read-only property. Returns a reference to the window object for a <frame> or <iframe> element.
Syntax:
document.getElementById("elementID").contentWindow document.all.elementID.contentWindow // IE only
</source>