+ 1
Solo learn web programming playground can not change css property with javascript I tried it I did not work if you have otherway
4 Antworten
+ 1
Emmanuel Ezoba I agree with Eacy , and I also want to say that it is possible. You aren't writing the code properly.
+ 6
Share your code to get specific help 😉
+ 1
Please share the code here
+ 1
For example,
document.getElementById("a").style.background = "red";
On Sololearn, the JavaScript does not run as if the script tag was at the bottom of the body tag. Because of this, you need to place DOM manipulation within the callback for the window loading:
window.onload = function() { }