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

namedItem Method

Internet Development Index

Retrieves an object or a collection from the specified collection.

Syntax

oItem = object.namedItem(sName)

Parameters

sName Required. String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.

Return Value

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

Remarks

This method first searches for an object with a matching id attribute. If a match is not found, the method then searches for an object with a matching name attribute, but only on those elements that are allowed a name attribute.

Example

The following example shows how to use the namedItem method to retrieve a div and change its innerText property.

    <DIV id="oDIV1">This text will not change.</DIV>
<DIV id="oDIV2">This text will change.</DIV>
<BUTTON onclick="document.all.namedItem('oDIV2').innerText='Changed!';">
Change Option
</BUTTON>

Standards Information

This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

all, anchors, applets, areas, boundElements, cells, elements, embeds, forms, images, links, mimeTypes, options, plugins, rows, scripts, tBodies, FORM, filters, frames, imports, styleSheets, TextRange, TextRectangle
静宁县| 武清区| 苍梧县| 西华县| 宁海县| 溆浦县| 闵行区| 抚顺县| 临清市| 南华县| 绥德县| 米林县| 保康县| 巧家县| 丹阳市| 大荔县| 简阳市| 文昌市| 凌海市| 遂昌县| 航空| 瓦房店市| 内乡县| 巴中市| 陕西省| 汾阳市| 南木林县| 龙川县| 福贡县| 防城港市| 沁阳市| 石嘴山市| 淮南市| 平武县| 沙河市| 唐山市| 遂溪县| 台南市| 紫金县| 红河县| 景谷|