Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

frameElement property

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


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

Property values

Type: Object

the frame or iframe.


The window must be a frame or iframe.


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";



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.