最新国产好看的视频,伊人天堂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
察隅县| 托里县| 保靖县| 太白县| 溧水县| 临城县| 牡丹江市| 昌江| 栾川县| 英吉沙县| 三门县| 宜章县| 安吉县| 通河县| 嵩明县| 怀来县| 城固县| 防城港市| 阜康市| 台南市| 岢岚县| 蓝山县| 邹城市| 商河县| 和林格尔县| 吉安县| 西安市| 津南区| 米易县| 新昌县| 黄平县| 民权县| 修武县| 青龙| 诏安县| 南部县| 托克逊县| 桐柏县| 高平市| 大方县| 交城县|