Observação
O acesso a essa página exige autorização. Você pode tentar entrar ou alterar diretórios.
O acesso a essa página exige autorização. Você pode tentar alterar os diretórios.
Removes the given attribute from the object.
![]() |
Syntax
HRESULT retVal = object.removeAttribute(strAttributeName, pfSuccess);
Parameters
strAttributeName [in]
Type: BSTR
BSTR that specifies the attribute name.
pfSuccess [out, retval]
C++ | Pointer to a VARIANT_BOOL that specifies one of the following possible values: |
JavaScript | VARIANT_BOOL. Returns one of the following possible values: |
VARIANT_TRUE (true)
The attribute was successfully removed.
VARIANT_FALSE (false)
The attribute was not removed.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
IHTMLElement5::removeAttribute always returns S_OK as its HRESULT value. Check the pfSuccess parameter to determine if the attribute is successfully removed.
See also
Reference
IHTMLElement6::setAttributeNode
Conceptual