.setProperty()

Term side of the Card
Topic: Object on Page
Unit title: .setProperty()
Categories: Method
Explanation side of the Card

Explanation: The browser API method used to set the value of a specified CSS property on a `CSSStyleDeclaration` object for a particular element. It's used to manipulate styles directly from JavaScript.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 6
Availability: