The button press does not result in a change of the background color. What could be causing this issue?
var body = document.getElementsByTagName("body");
var bgbutton = doucument.getElementById("bgchange");
bgbutton.onclick = function() {
body.style.background-color = "green";
}
body {
width: 600px;
margin: 0 auto;
background-color: #FF9500;
padding: 0 20px 20px 20px;
}
<div id="wrapper"></div>
<button id="bgchange"></button>