For my Website, I have a set background-color of the body, for example
body {
background-color: #FFFFFF;
}
I also have a button defined in the .html-File (Let's say it has the ID "button1"), and I want the Background-Color of the body to change (to for example #000000;) when the button is beeing hovered over with a mouse and change back when the mouse isnt on the button anymore. Is there a way to do this?
I am a new webdeveloper and am still looking at/learning JavaScript.