最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

contentWindow Property

Internet Development Index

Retrieves the window object of the specified frame or iframe.

Syntax

HTMLN/A
Scripting[ oWindow = ] document.all.object.contentWindow

Possible Values

oWindow Object that receives the window object.

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

Remarks

This property is useful if you do not know the id of the frame or iframe you are accessing through a collection.

Example

The following example shows how to use the contentWindow property to change the URL of window objects contained inside several iframe objects.

<html>
<head>
<SCRIPT>
function fnNavigate()
{
for(i=0;i<document.all.length;i++)
{
if(document.all(i).tagName=="IFRAME")
{
document.all(i).contentWindow.location = "http://www.msn.com";
}
}
}
</SCRIPT>
</HEAD>
<BODY>
<BUTTON onclick="fnNavigate();">Navigate Frames</BUTTON>
<P/>
<IFRAME SRC="http://www.microsoft.com" STYLE="width:100%;height:150px;">
</IFRAME>
<P/>
<IFRAME SRC="http://www.microsoft.com" STYLE="width:100%;height:150px;">
</IFRAME>
<P/>
<IFRAME SRC="http://www.microsoft.com" STYLE="width:100%;height:150px;"/>
</IFRAME>
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5.5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this property.

Applies To

FRAME, IFRAME

See Also

frameElement
峨山| 三门峡市| 汾西县| 怀化市| 南康市| 黄浦区| 南京市| 宁强县| 华安县| 松潘县| 隆尧县| 永丰县| 库车县| 台东市| 贵港市| 江川县| 景东| 巴林左旗| 湘潭市| 福安市| 巴彦县| 伊春市| 皋兰县| 长汀县| 霍林郭勒市| 邮箱| 西乡县| 年辖:市辖区| 开封县| 岳池县| 都江堰市| 平昌县| 黎川县| 平乡县| 隆子县| 凤山县| 北海市| 江永县| 新乐市| 从化市| 榆社县|