diff --git a/Chapter 11/Exercise_11.4.html b/Chapter 11/Exercise_11.4.html index 73e7de0..cccfec6 100644 --- a/Chapter 11/Exercise_11.4.html +++ b/Chapter 11/Exercise_11.4.html @@ -13,16 +13,16 @@ output.style.backgroundColor = "red"; output.addEventListener("mousedown", function (e) { message("green", e); - }) + }); output.addEventListener("mouseover", function (e) { message("red", e); - }) + }); output.addEventListener("mouseout", function (e) { message("yellow", e); - }) + }); output.addEventListener("mouseup", function (e) { message("blue", e); - }) + }); function message(elColor, event) { console.log(event.type); output.style.backgroundColor = elColor;