This topic has not yet been rated - Rate this topic

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

 

 

Build date: 11/12/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.