YouTip LogoYouTip

Met Cssstyle Removeproperty

# CSSStyleDeclaration removeProperty() Method [![Image 3: CSS CSSStyleDeclaration](#) CSS CSSStyleDeclaration](#) ## Example Remove the color property: var declaration = document.styleSheets.cssRules.style; var removedvalue = declaration.removeProperty("color"); alert(removedvalue); [Try it Yourself Β»](#) * * * ## Definition and Usage The removeProperty() method is used to remove a specified CSS style property. * * * ## Browser Support | Method | | | | | | | --- | --- | --- | --- | --- | --- | | removeProperty() | Yes | 9.0 | Yes | Yes | Yes | * * * ## Syntax object.removeProperty(propertyname) * * * ## Property Values | Parameter | Description | | --- | --- | | _propertyname_ | Required. A string representing the name of the property to remove. | * * * ## Technical Details | DOM Version: | CSS Object Model | | --- | | Return Value: | String, the name of the removed property. | [![Image 4: CSS CSSStyleDeclaration](#) CSS CSSStyleDeclaration](#)
← Vue MixinsMet Cssstyle Getpropertyvalue β†’