JavaScript Programmer’s Reference The attributes collection that belongs

JavaScript Programmer’s Reference The attributes collection that belongs to an object also tells you what the expected complete set of attributes are for the tag, although this may not be completely reliable. The example script demonstrates how you can make an Attribute object inspector with a fragment of JavaScript. These inspectors can be put into a library and called in for debugging when you are experiencing problems. Note that the example overleaf does not work on Netscape 6.0 due to the use of the all property. Example code: See also: Attr object, Attributes object, Document.createAttribute(), Element.getAttributeNode(), Element.removeAttribute(), Element.removeAttributeNode(), Element.setAttributeNode(), HasProperty(), HTML tag attribute, MutationEvent.attrChange, MutationEvent.attrName

Leave a Reply