How to change div background color on button click?
I can change the background color Red, Blue, as well as Green, but when I click the Reset button I get an error in Chrome(browser): btnReset is not a function, How to make all div blank when I click Reset button? function btnRed() { document.getElementById("Div1").style.backgroundColor="Red"; } function btnGreen() { document.getElementById("Div2").style.backgroundColor="Green"; } function btnBlue() { document.getElementById("Div3").style.backgroundColor="Blue"; } function btnReset() { document.getElementById("Div1").style.backgroundColor="Black"; document.getElementById("Div2").style