JavaScript Reference/Javascript Properties/top window
"top" Example
<source lang="javascript">
<html> <head> <script language="JavaScript"> function function1() {
var m = window.top.document.getElementById("myP").tagName; alert("Tag name: <"+m+">");
} </script> </head> <body>
Click in this text to check its tag name.
</body> </html>
</source>
"top" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |window | +----------------+--------------------------------------------------------------+
</source>
"top" Syntax and Note
<source lang="javascript">
Note: Read-only property. returns a reference to the parent window of all the frames.
Syntax:
window.top
</source>