0
CSS and JS question
How can i use JS variables with CSS values? e.g: CSS: color: #090909; JS: var someColor; I want to be able to assign the CSS color though JS
3 Réponses
+ 3
Look at the lessons in JS, your answer lies there....
+ 1
Here a sample to change body css through js:
var body = document.body;
body.style.backgroundColor = color;
https://code.sololearn.com/Wk2i6r9kgwe2/?ref=app