Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
.png)