+ 2

Help me with night mode button in html?

I want color to be inverted when i click the button

28th Jun 2019, 10:15 AM
Rutuja Kavitake
Rutuja Kavitake - avatar
1 Respuesta
+ 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
28th Jun 2019, 11:16 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar