removeAttribute method (runtimeStyle, style)
Removes the specified property from the current style object.
In other browsers, the removeProperty method provides similar functionality.
You can find the related objects in the Supported by objects section below.
Optional. Integer that specifies the case-sensitivity for the name of the property.
This parameter is only supported in Internet Explorer earlier than version 8.
The name is not case sensitive since version 8.
In earlier versions, the following values are supported:
Boolean. One of the following values:
|The property was not removed.|
|The property was removed.|
Example HTML code 1:
This example illustrates the use of the removeAttribute method:
Did you find this example helpful?
User Contributed Comments