JavaScript and the DOM

  1. Handling Events
    1. Event Fundamentals
      1. Event-Driven Programming
        1. User-Generated Events
          1. System-Generated Events
            1. Event Lifecycle
            2. Event Registration
              1. addEventListener() Method
                1. Basic Syntax
                  1. Event Type Parameter
                    1. Callback Function
                      1. Options Object
                        1. capture Option
                          1. once Option
                            1. passive Option
                          2. removeEventListener() Method
                            1. Removing Event Listeners
                              1. Function Reference Requirements
                              2. Event Handler Properties
                                1. onclick Property
                                  1. onload Property
                                    1. Differences from addEventListener()
                                      1. Limitations
                                    2. Event Object
                                      1. Event Properties
                                        1. target Property
                                          1. currentTarget Property
                                            1. type Property
                                              1. bubbles Property
                                                1. cancelable Property
                                                  1. timeStamp Property
                                                  2. Event Methods
                                                    1. preventDefault() Method
                                                      1. stopPropagation() Method
                                                        1. stopImmediatePropagation() Method
                                                      2. Event Propagation
                                                        1. Event Flow Phases
                                                          1. Capturing Phase
                                                            1. Target Phase
                                                              1. Bubbling Phase
                                                                1. Controlling Propagation
                                                                  1. Practical Applications
                                                                  2. Event Delegation
                                                                    1. Concept and Benefits
                                                                      1. Implementation Techniques
                                                                        1. Dynamic Content Handling
                                                                          1. Performance Advantages
                                                                            1. Best Practices
                                                                            2. Mouse Events
                                                                              1. click Event
                                                                                1. dblclick Event
                                                                                  1. mousedown Event
                                                                                    1. mouseup Event
                                                                                      1. mouseover Event
                                                                                        1. mouseout Event
                                                                                          1. mouseenter Event
                                                                                            1. mouseleave Event
                                                                                              1. mousemove Event
                                                                                                1. Mouse Event Properties
                                                                                                2. Keyboard Events
                                                                                                  1. keydown Event
                                                                                                    1. keyup Event
                                                                                                      1. keypress Event
                                                                                                        1. Key Identification
                                                                                                          1. key Property
                                                                                                            1. code Property
                                                                                                              1. keyCode Property
                                                                                                              2. Modifier Keys
                                                                                                                1. Keyboard Event Patterns
                                                                                                                2. Form Events
                                                                                                                  1. submit Event
                                                                                                                    1. reset Event
                                                                                                                      1. focus Event
                                                                                                                        1. blur Event
                                                                                                                          1. change Event
                                                                                                                            1. input Event
                                                                                                                              1. Form Event Handling Patterns
                                                                                                                              2. Window and Document Events
                                                                                                                                1. load Event
                                                                                                                                  1. DOMContentLoaded Event
                                                                                                                                    1. resize Event
                                                                                                                                      1. scroll Event
                                                                                                                                        1. unload Event
                                                                                                                                          1. beforeunload Event
                                                                                                                                            1. Event Timing Considerations