Retrieves the value of the given attribute.
Syntax
HRESULT getAttribute( BSTR strAttributeName, LONG fFlags, VARIANT *AttributeValue );
Parameters
- strAttributeName
- String that specifies the name of the attribute to retrieve.
- fFlags
- Long integer that receives the flags.
- AttributeValue
- Address of a variable that receives a string, number, or Boolean value as defined by the attribute. If the attribute is not present, this method returns NULL.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
If two or more attributes have the same namediffering only in uppercase and lowercase lettersand fCaseSensitive is false, this method removes only the last attribute to be created with this name. All other attributes of the same name are ignored.
This method is used only by events created from HTML Components.
See Also
setAttribute, IHTMLStyle