+ 2
Help me with night mode button in html?
I want color to be inverted when i click the button
1 Resposta
+ 4
you can use JavaScript.
use a onclick event to change background color property of webpage.
click event should invoke a function that changes backgroundColor property of body .
just an example 😪 here . once you get idea you can try many more things .
https://code.sololearn.com/Wc2Ud3o7rkJs/?ref=app