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

frames Collection

Internet Development Index

Retrieves a collection of all window objects defined by the given document or defined by the document associated with the given window.

Syntax

[ oColl = ] object.frames
[ oObject = ] object.frames(vIndex [, iSubIndex])

Possible Values

oCollArray of window objects.
oObjectReference to an individual item in the array of elements contained by the object.
vIndexRequired. Integer or string that specifies the element or collection to retrieve. If this parameter is an integer, the method returns the element in the collection at the given position, where the first element has value 0, the second has 1, and so on. If this parameter is a string and there is more than one element with the name or id property equal to the string, the method returns a collection of matching elements.
iSubIndexOptional. Position of an element to retrieve. This parameter is used when vIndex is a string. The method uses the string to construct a collection of all elements that have a name or id property equal to the string, and then retrieves from this collection the element at the position specified by iSubIndex.

Members Table

PropertyDescription
length Sets or retrieves the number of objects in a collection.
MethodDescription
item Retrieves an object from the filters collection or various other collections.
namedItem   Retrieves an object or a collection from the specified collection.

Remarks

If the HTML source document contains a body tag, the collection contains one window for each iframe object in the document. If the source document contains frameSet tags, the collection contains one window for each frame tag in the document. In both cases, the order is determined by the HTML source.

This collection contains only window objects and does not provide access to the corresponding frame and iframe objects. To access these objects, use the all collection for the document containing the objects.

Although you can use names with the item method on this collection, the method never returns a collection. Instead, it always returns the first window having the given name. To ensure that all windows are accessible, make sure that no two windows in a document have the same name.

Examples

This example in JScript® (compatible with ECMA 262 language specification) shows how to display the URLs of the HTML documents contained in windows created by the iframe objects in the document.

var frm = document.frames;
for (i=0; i < frm.length; i++)
alert(frm(i).location);

This example in JScript shows how to display the name of each window defined by frame tags in the parent window of the current document.

var frm = window.parent.frames;
for (i=0; i < frm.length; i++)
alert(frm(i).name);

Standards Information

There is no public standard that applies to this collection.

Applies To

document, window
沧州市| 通榆县| 拉萨市| 瑞安市| 鸡西市| 衢州市| 永兴县| 化州市| 阿坝| 南漳县| 曲水县| 惠东县| 广东省| 卢湾区| 陕西省| 开封市| 霍城县| 红河县| 昌图县| 呼图壁县| 玉林市| 五大连池市| 吉隆县| 华蓥市| 斗六市| 英超| 花莲县| 肇源县| 衡阳市| 富源县| 宽城| 海林市| 临沭县| 绿春县| 呼图壁县| 宝鸡市| 郯城县| 曲周县| 陆良县| 宁化县| 弥勒县|