Retrieves the frame or iframe object that is hosting the window in the parent document.
dhtml语法
[ owinframe = ] window.frameelement
dhtml可能的值
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.
DHTML代码范例
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>
是否符合公共标准
There is no public standard that applies to this property.
Applies To