Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
frameElement
Collapse the table of content
Expand the table of content

frameElement property

Retrieves the frame or iframe object that is hosting the window in the parent document.

Syntax

HRESULT value = object.get_frameElement(IHTMLFrameBase** p);

Property values

Type: Object

the frame or iframe.

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>


 

 

Community Additions

ADD
Show:
© 2015 Microsoft