RemoveAttribute - web automation method
IE automation method that removes an HTML attribute from an Element object.
Applies to:
- Element
elementObj.RemoveAttribute(attrName);
Arguments:
-
-
attrName
is the name of the attribute to be removed.
Remarks:
-
The HTML attribute name is case insensitive.
When removing the CLASS attribute using this method, specify the sName to be "className", which is the corresponding Dynamic HTML (DHTML) property.
Example:
None.
See also:
- Element | GetAttribute | nativeElement | SetAttribute
©
2014 CodeCentrix Software. All rights reserved.