Share via


ImgElement.removeAttribute Method

SharePoint Designer Developer Reference

Returns a Boolean that represents whether the attribute was successfully removed. True indicates that the attribute was removed. False indicates that the attribute was not removed.

Syntax

expression.removeAttribute(strAttributeName, lFlags)

expression   Required. A variable that represents an ImgElement object.

Parameters

Name Required/Optional Data Type Description
strAttributeName Required String The name of the attribute.
lFlags Optional Integer Specifies whether to use a case-sensitive search to locate the attribute. 1 (True) indicates that the uppercase and lowercase letters in the specified sAttributeName parameter must exactly match those in the attribute name. 0 (False) indicates that the attribute name match to the sAttributeName parameter is not case sensitive. Default value is 1.

Return Value
Boolean

Remarks

When no corresponding property exists for an attribute, use the getAttribute method to get the value of an attribute. When no corresponding property exists for an attribute or when the property that accesses an attribute is read-only, use the setAttribute method to set the value of an attribute.

See Also