Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js set css variable

document.documentElement.style.setProperty("--main-background-color", "green");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #set #css #variable
ADD COMMENT
Topic
Name
7+8 =