Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Gets the value of the named attribute.
Syntax
objValue = oDOMElement.getAttribute(name)
Parameters
- name
- String specifying the name of the attribute to return.
Returns
Variant. Returns a string that contains the attribute value. Returns the empty string if the named attribute does not have a specified or default value.
Remarks
Another way to retrieve attributes is to use the IDOMNamedNodeMap object's getNamedItem method.
Applies To
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.