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

getNamedItem Method

Internet Development Index

Retrieves an attribute specified with the name property using the attributes collection.

Syntax

oGetName = attributes.getNamedItem(sGetName)

Parameters

sGetName Required. String that specifies the name of the attribute to retrieve.

Return Value

Returns an attribute with the specified name.

Remarks

If the attribute applies to an element but is not specified, this method returns the attribute with the specified name set to an empty string.

If the attribute does not apply to the element and is not specified, then an error is returned.

If the attribute does not apply to the element and is specified, then the attribute with the specified name is returned.

Example

The following example shows how to use the getNamedItem method to retrieve the value of an attribute.

<HTML>
<HEAD>
<SCRIPT>
function Init()
{
var oAttrColl = oElem.attributes;
var oAttr = oAttrColl.getNamedItem("align");
alert("ALIGN attribute value: " + oAttr.value);
}
</SCRIPT>
</HEAD>
<BODY ONLOAD="Init()">
<P ID="oElem" ALIGN="center">An element.</P>
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 6 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

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

Applies To

attributes
乌鲁木齐县| 彭州市| 龙里县| 蓬溪县| 安徽省| 贡山| 青田县| 三台县| 哈密市| 沈阳市| 樟树市| 浦城县| 嘉禾县| 白玉县| 宣威市| 红原县| 上饶县| 南城县| 商丘市| 卢湾区| 墨江| 民勤县| 崇礼县| 湟源县| 那坡县| 射洪县| 河曲县| 涪陵区| 娱乐| 繁峙县| 乐昌市| 澳门| 九江市| 麻城市| 安吉县| 成都市| 区。| 齐河县| 商水县| 松潘县| 涞源县|