www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 frameElement Property
frameElement Property

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

Syntax

[ oWinFrame = ] window.frameElement

Possible Values

oWinFrame Object that receives the frame or iframe.

The property is read-only. The property has no default value.

Remarks

The window must be a frame or iframe.

Example

The following example retrieves the frame element of the window and sets its source URL to Microsoft Developer Network (MSDN) Online.

<SCRIPT LANGUAGE="JScript">
    var oFrame = window.frameElement;
    oFrame.src = "http://msdn.microsoft.com";
</SCRIPT>

Standards Information

There is no public standard that applies to this property.

Applies To

window
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG