removeProperty
Summary
Removes a property from a CSS style declaration.
Method of css/cssom/CSSStyleDeclaration/CSSStyleDeclarationcss/cssom/CSSStyleDeclaration/CSSStyleDeclaration
Syntax
var value = declaration.removeProperty(property);
Parameters
property
- Data-type
- String
The name of the property to remove.
Return Value
Returns an object of type StringString
The value of the property if it is explicitly set for this declaration block, or null if the property is not explicitly set for this declaration block or if the property name does not correspond to a known CSS property.
Related specifications
- DOM Level 2 Style
- Recommendation
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]