Section 2.5 Event Handling in JavaScript
Learning Objectives
After you have completed this section, you should be able to
- explain the notion of events, event handlers, and event bubbling.
- create event handlers for given events.
- create dynamic web pages by scripting.
Activities
Study Questions
- What are dynamic styles?
- How do you change the style of an element dynamically?
- What is dynamic positioning?
- How do you dynamically position HTML5 elements in HTML5?
- What is the frames collection in DOM?
- How do you access objects in different frames using the frames collection?
- What is the navigator object? What properties does it have? How is it used in web page authoring?
- What are JavaScript events?
- How is an event handler bound to a specific event?
- What JavaScript events are mouse-related?
- What JavaScript events are keyboard-related?
- What are the onload, onclick, and onerror events?
- What events in dynamic HTML are related to form processing?
- What is event bubbling in dynamic HTML?
- How do you cancel event bubbling for an event?
- What are clipboard events?
- What are data-binding events?
- What are some useful miscellaneous events in dynamic HTML?
Review
Do the self-review exercises for Chapter 13.
Summary
Read the Chapter 13 summary.