[JS] 우클릭 인식은 어떻게 구현하는 것일까?
코드 챌린지를 하다가 이벤트리스너를 복습하고 있었는데 역시 하다보면 구멍이 슝슝 뚫려있는 곳이 많았다. 그 중 하나가 우클릭을 어떻게 구현하는 것인가였다. 구글링하면 금방 나올줄 알았는데 안나오고 다들 클릭 이벤트 종류에 대해서만 다뤄서 이 글을 남긴다. 역시 검색은 영어로 찾아야한다; const superEventHandler = { mouseOver: function () { hello.innerText = "The mouse is here!"; hello.style.color = colors[0]; }, mouseOut: function () { hello.innerText = "The mouse is gone!"; hello.style.color = colors[1]; }, reSized: fun..
2023.03.23