Open stronghasu opened 10 months ago
// 이벤트리스너 파라미터 두개 필요 // 파라미터 자리에 들어가는 함수를 콜백함수라고 부른다. (순차적실행 가능) document .getElementById("close_btn") .addEventListener("click", function () { document.getElementById("alert").style.display = "none"; });