最新国产好看的视频,伊人天堂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
泊头市| 莱西市| 林州市| 兴安县| 丁青县| 垦利县| 丹东市| 五指山市| 监利县| 临武县| 镇巴县| 蒲江县| 嵩明县| 沂水县| 托克逊县| 漳州市| 韶山市| 唐河县| 仁怀市| 靖宇县| 滁州市| 仙游县| 分宜县| 潞西市| 阳朔县| 河源市| 安康市| 镇远县| 驻马店市| 清镇市| 漳平市| 驻马店市| 禹城市| 北安市| 晋城| 专栏| 郧西县| 辽宁省| 灵宝市| 霍林郭勒市| 柏乡县|