+ 2

Why the background color isn't changing.

See the 474 line of js, why the background color is not changing. See the code↓↓ https://code.sololearn.com/WkuUg3mobwCA/?ref=app

5th Aug 2021, 10:16 AM
Parth
Parth - avatar
1 ответ
+ 4
You are changing the style of the body.So you have to write the .style also which you are missing. Like that: changeBodyBackgroundColor.style.backgroundColor = "grey"; After that ,if you call the openSetting() function it will work.
5th Aug 2021, 10:37 AM
The future is now thanks to science
The future is now thanks to science - avatar