일반적인 HTML 이벤트

Event Description
onchange An HTML element has been changed
onclick The user clicks an HTML element
onmouseover The user moves the mouse over an HTML element
onmouseout The user moves the mouse away from an HTML element
onkeydown The user pushes a keyboard key
onload The browser has finished loading the page

더 많은 이벤트 보기

https://www.w3schools.com/jsref/dom_obj_event.asp

https://developer.mozilla.org/ko/docs/Web/Events

clickEvent.addEventListener("click", eventHandler);

eventHandler(event){
	console.log(event)  // 이벤트에 관한 정보 구경
}

기억 하고 싶은 것들

  1. onclick과 addEventListener의 차이

    https://cbw1030.tistory.com/302

  2. 버블링과 캡처링

    https://ko.javascript.info/bubbling-and-capturing