JavaScript CSSStyleDeclaration removeProperty() Method
JavaScript CSSStyleDeclaration removeProperty() Method
The removeProperty() method is used to remove the specified CSS property from a CSS declaration block.
Syntax:-
Its syntax is:- object.removeProperty(propertyname)
Return:-
Its return is:- string containing the old value of the removed property
Further Explanation:-
Parameter | Description |
---|---|
propertyname | Required. A String that represents the name of the property. |