All Tech Tips |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
attribute ObjectRepresents an attribute or property of an HTML element as an object. Members Table
Remarks The attribute object is accessible through the attributes collection. A valid attribute or property can be any Dynamic HTML (DHTML) property or event that applies to the object, or an expando. This object is available in script as of Internet Explorer 5. Example This example uses the attribute object to create a list of attributes that are specified. <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">List Item 1
</UL>
Standards Information There is no public standard that applies to this object. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Copyright © 2006 alltechtips.com. All rights reserved.
This website and the materials and information you find on this website are provided "as is", without warranty of any kind, either express or implied, including without limitation any warranty for information, services, or products provided through or in connection with the service and any implied warranties of merchantability, fitness for a particular purpose, expectation of privacy or non-infringement.
Advertising
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||