all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
2 out of 8 rated this helpful - Rate this topic

frameElement property

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

Syntax

JavaScript

p = object.frameElement

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>


See also

window

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.