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

getAttribute Method

Internet Development Index

Retrieves the value of the specified attribute.

Syntax

vAttribute = object.getAttribute(sAttrName)

Parameters

sAttrName Required. String爐hat specifies the name of the persistent attribute.

Return Value

Variant. Returns a string, number, or Boolean, defined by sAttrName. If an explicit attribute doesn't exist, an empty string is returned. If a custom attribute doesn't exist, null is returned.

Remarks

The sAttrName value is not case sensitive.

This method requires an object participating in persistence, where that object has a class name equal to the desired persistence behavior. An ID is required for the userData and saveSnapshot behaviors, and is recommended for the saveHistory and saveFavorite behaviors.

This method overrides the DHTML getAttribute method.

Example

This example uses the getAttribute method to retrieve an attribute on an object participating in userData persistence.

<HEAD>
<STYLE>
.userData {behavior:url(#default#userdata);}
</STYLE>
<SCRIPT>
function fnGet(){
oPersistInput.load("oDataStore");
oPersistInput.value=oPersistInput.getAttribute("sPersistAttr");
}
function fnSet(){
oPersistInput.setAttribute("sPersistAttr",oPersistInput.value);
oPersistInput.save("oDataStore");
}
function fnRem(){
oPersistInput.removeAttribute("sPersistAttr");
oPersistInput.save("oDataStore");
}
</SCRIPT>
</HEAD>
<BODY >
<INPUT type=text class=userData id=oPersistInput>
<INPUT type=button value="Get Attribute" onclick="fnGet()">
<INPUT type=button value="Set Attribute" onclick="fnSet()">
<INPUT type=button value="Remove Attribute" onclick="fnRem()">
</BODY>
This feature requires Microsoft® Internet Explorer 5 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

saveFavorite, saveHistory, userData

See Also

Introduction to DHTML Behaviors, Introduction to Persistence, removeAttribute, setAttribute
池州市| 汕头市| 潞城市| 长寿区| 太原市| 双鸭山市| 吉林省| 浏阳市| 水富县| 宁晋县| 民权县| 东宁县| 泰和县| 咸宁市| 抚松县| 鄂伦春自治旗| 哈巴河县| 博野县| 策勒县| 西城区| 类乌齐县| 拜城县| 芜湖市| 昌宁县| 嘉义县| 内江市| 家居| 德保县| 佛坪县| 行唐县| 敖汉旗| 崇义县| 旬邑县| 汉沽区| 巴林左旗| 民权县| 海兴县| 汾西县| 四子王旗| 五河县| 兴安县|