removeProperty method Null safety

String removeProperty(
  1. String property
)

Removes a property from the CSS declaration block. var oldValue = style.removeProperty(property); The following JavaScript code removes the background-color CSS property from a selector rule:

var declaration = document.styleSheets0.rules0.style; var oldValue = declaration.removeProperty('background-color');

Implementation

external String removeProperty(String property);