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

removeAttribute Method

Internet Development Index

Removes the specified attribute from the object.

Syntax

object.removeAttribute(sAttrName)

Parameters

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

Return Value

No return value.

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 recommended for the saveHistory and saveFavorite behaviors.

This method overrides the DHTML removeAttribute method.

Example

This example uses the removeAttribute method to remove 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, getAttribute, setAttribute
吕梁市| 常德市| 桂东县| 濉溪县| 东阿县| 浦东新区| 澄城县| 东明县| 吉林省| 眉山市| 尖扎县| 蒲江县| 沅陵县| 什邡市| 龙陵县| 襄樊市| 麻栗坡县| 西充县| 崇仁县| 揭西县| 玉树县| 哈密市| 澄迈县| 南昌市| 芜湖县| 林口县| 通许县| 华安县| 桐乡市| 友谊县| 陆河县| 什邡市| 十堰市| 都安| 湟中县| 界首市| 平湖市| 浮梁县| 武胜县| 大港区| 柳河县|