JavaScript Reference/Javascript Properties/parentWindow
"parentWindow" Example
<source lang="javascript">
<html> <body> <script language="JavaScript">
function function1() { alert(document.parentWindow.frames.length); }
</script> <input type="button"
value="How many frames in this window?" onclick="function1();">
</body> </html>
</source>
"parentWindow" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |document | +----------------+--------------------------------------------------------------+
</source>
"parentWindow" Syntax and Note
<source lang="javascript">
Note: Read-only property. Returns a reference to the window that contains the document.
Syntax:
document.parentWindow
</source>