Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

hasAttributes method

Determines whether one or more attributes exist for the object.

Internet Explorer 8

 

Syntax


HRESULT retVal = object.hasAttributes(pfHasAttribute);

Parameters

pfHasAttribute [out, retval]

Type: VARIANT_BOOL

VARIANT_FALSE (false)

The element does not define any attributes.

VARIANT_TRUE (true)

The element defines one or more attributes.

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 IHTMLElement6::hasAttributes method determines whether the object has any attributes at all. The IHTMLElement6::hasAttribute method tests for the existence of a specified attribute.

See also

Reference
getAttribute
IHTMLElement6::hasAttribute

 

 

Community Additions

ADD
Show:
© 2015 Microsoft