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

item Method

Internet Development Index

Retrieves an object from the filters collection or various other collections.

Syntax

oItem = object.item(vIndex)

Parameters

vIndex Required. Integer or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.

Return Value

Returns an object or a collection of objects if successful, otherwise null.

Examples

The following example uses the item method to retrieve each object from the document. In this case, the method parameter is a number, so the objects are retrieved in the order in which they appear in the document.

<SCRIPT LANGUAGE="JScript">
var oItem = document.all;
if (oItem!=null) {
for (i=0; i<oItem.length; i++)
alert(oItem.item(i).tagName);
}
</SCRIPT>

The next example uses the item method to retrieve a collection of all objects in the document that have "Sample" as an ID. It then uses item again to retrieve each object from the "Sample" collection.

<SCRIPT LANGUAGE="JScript">
var oItem = document.all.item("Sample");
If (oItem != null) {
for (i=0; i<oItem.length; i++) {
alert(oItem.item(i).tagName);
}
}
</SCRIPT>

Standards Information

There is no public standard that applies to this method.

Applies To

filters, frames, imports, styleSheets, TextRange, TextRectangle
南宫市| 砚山县| 普宁市| 深水埗区| 元阳县| 云浮市| 沽源县| 西吉县| 南阳市| 包头市| 寻乌县| 平原县| 江油市| 五寨县| 时尚| 南开区| 尉氏县| 育儿| 建德市| 彭阳县| 五家渠市| 开化县| 泗水县| 南华县| 林甸县| 古浪县| 大埔区| 新津县| 罗田县| 临沂市| 昂仁县| 西乌珠穆沁旗| 惠东县| 茌平县| 水富县| 永和县| 江阴市| 搜索| 铁岭县| 曲松县| 宜兴市|