frameElement property
Retrieves the frame or iframe object that is hosting the window in the parent document.
Syntax
| JavaScript | |
|---|
Property values
Type: Object
Remarks
The window must be a frame or iframe.
Examples
The following example retrieves the frame element of the window and sets its source URL to Microsoft Developer Network (MSDN) Online.
<script type="text/javascript"> var oFrame = window.frameElement; oFrame.src = "http://msdn.microsoft.com"; </script>
See also
Show: