🚪
Web Animation 2부 js Animation
/
🚩
ch4 - 2. DOM에 접근하기
/
document.getElementById(id).onclick = function(){code}
document.getElementById(id).onclick = function(){code}
Description
이벤트 핸들러 코드를추가한다.