1. 교재 예제
    1. ex9-01.html
    2. ex9-02.html
    3. ex9-03.html
    4. ex9-04.html
    5. ex9-05.html
    6. ex9-06.html
    7. ex9-07.html
    8. ex9-08.html
    9. ex9-09.html
    10. ex9-10.html
    11. ex9-11.html
    12. ex9-12.html
    13. ex9-13.html
    14. ex9-14.html
    15. ex9-15.html
    16. ex9-16.html
    17. ex9-17.html
    18. ex9-18.html
    19. ex9-19.html
    20. ex9-20.html
    21. ex9-21.html
    22. fig9-01.html
    23. fig9-02.html
  2. 이벤트
    1. 정의 : 마우스 클릭, 키보드 입력, 이미지나 HTML 문서의 로딩, 타이머의 타임 아웃 등 사용자의 입력 행위나 문서나 브라우저의 상태 변화를 자바스크립트 코드에게 알리는 통지(notification)
    2. 이벤트 리스너 : 발생한 이벤트에 대처하기 위해 작성된 자바스크립트 코드
    3. 이벤트 종류
      1. HTML5에서 이벤트 종류는 70여가지
      2. 이벤트 리스너 이름은 이벤트 이름 앞에 on을 덧붙임
    4. 주요 이벤트 리스너
      1. onkeydown
      2. onkeypress
      3. onkeyup
      4. onclick
      5. oncontextmenu
      6. ondblclick
      7. onmousedown
      8. onmouseenter
      9. onmouseleave
      10. onmousemove
      11. onmouseover
      12. onmouseout
      13. onmouseup
      14. onwheel
      15. onabort
      16. onerror
      17. onload
      18. onresize
      19. onunload
      20. onbeforeprint
      21. onafterprint
      22. onfocus
      23. onblur
      24. onchange
      25. onreset
      26. onsearch
      27. onselect
      28. onsubmit
  3. 이벤트 리스너 만들기
    1. HTML 태그 내에 작성
    2. DOM 객체의 이벤트 리스터 프로퍼티에 작성
    3. DOM 객체의 addEventListener() 메소드 이용

       
error: Content is protected !!