CSS manipulation in JavaScript
CSSStyleDeclaration Object The CSSStyleDeclaration object represents a collection of CSS property-value pairs. It is used in API : HTMLElement.stylewindow.getComputedStyle( ) Properties cssText length parentRule Methods getPropertyValue(property)getPropertyPriority(property)removeProperty(property)setProperty(property, value, priority)item(index) Style Property The style property is used to get or set the inline style of an element. While getting, it returns a CSSStyleDeclaration object that contains a … Read more