JavaScript Reference/Javascript Properties/menuArguments
<html>
<body>
<script language = "JavaScript">
var yourWindow = window.external.menuArguments;
var theDocument = yourWindow.document;
</script>
</body>
</html>
+----------------+--------------------------------------------------------------+
| Applied_To |external |
+----------------+--------------------------------------------------------------+
Note:
Read-only property.
Returns a reference to the window object called from a context menu.
Syntax:
window.external.menuArguments