hasAttributes method
Determines whether one or more attributes exist for the object.
![]() |
Syntax
HRESULT retVal = object.hasAttributes(pfHasAttribute);
Parameters
- pfHasAttribute [out, retval]
-
Type: VARIANT_BOOL
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Standards information
There are no standards that apply here.
Remarks
The IHTMLDOMAttribute4::hasAttributes method determines whether the object has any attributes at all. The IHTMLElement5::hasAttribute method tests for the existence of a specified attribute.
See also
- Reference
- getAttribute
- IHTMLElement5::hasAttribute
Show:
