attribute 对象
以对象的形式代表了 HTML 元素的标签属性或属性。
成员表
下面的表格列出了 attribute 对象引出的成员。请单击左侧的标签来选择你想要查看的成员类型。
注释
attribute 对象可通过 attributes 集合访问。
一个合法的标签属性或属性可以是应用于该对象的任何动态 HTML (DHTML)属性或事件,或者是扩展属性。
此元素在 Microsoft® Internet Explorer 5.0 的脚本中可用。
示例
这个例子使用 attribute 对象来创建已指定的属性清单。
<SCRIPT>
function fnFind(){
for(var i=0;i<oList.attributes.length;i++){
if(oList.attributes[i].specified){
alert(oList.attributes[i].nodeName + " = "
+ oList.attributes[i].nodeValue);
}
}
}
</SCRIPT>
<UL onclick="fnFind()">
<LI ID = "oList" ACCESSKEY = "L">列表项目 1
</UL>
标准信息
没有应用于此对象的公共标准。