onclick, 계산기 만들기
계산하고자 하는 수식을 입력하고 계산 버튼을 눌러보세요.
마우스 관련 이벤트 리스너
마우스 이벤트 발생
마우스 이벤트 객체의 프로퍼티와 onmousemove
이미지 위에 마우스를 움직일 때 onmousemove 리스너가 실행되고 마우스의 위치를 보여줍니다.

oncontextmenu에서 컨텍스트 메뉴 금지
마우스 오른쪽 클릭은 금지됩니다. 아무곳이나 클릭해도 컨텍스트 메뉴를 볼 수 없습니다.
onload로 이미지 크기 출력

new Image()로 이미지 로딩
이미지를 클릭하면 다음 이미지를 보여줍니다.