1var target = document.querySelector(".button");
2target.addEventListener("mouseover", mOver, false);
3target.addEventListener("mouseout", mOut, false);
4
5function mOver() {
6 target.setAttribute("style", "background-color:blue;")
7}
8
9function mOut() {
10 target.setAttribute("style", "background-color:green;")
11}