DOCTYPE html> 색상변경 예제 1-1 window.addEventListener("load", function(){ //검정버튼 var btnBlack = document.querySelector(".btn-black"); btnBlack.addEventListener("click", function(){ var h1 = document.querySelector(".target"); h1.style.color = "black"; }); //빨강버튼 var btnRed = document.querySelector(".btn-red"); btnRed.addEventListener("click", function(){ var h1 = document.querySelector(".target"); h1..