CSS Object Model (CSSOM)
The CSS Object Model is a set of APIs allowing the manipulation of CSS from JavaScript. It is much like the DOM, but for the CSS rather than the HTML. It allows users to read and modify CSS style dynamically.
document.body.style.background = 'lightblue';
References:
- https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model
- https://css-tricks.com/an-introduction-and-guide-to-the-css-object-model-cssom/
- https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model
Categories :
CSS
JavaScript