Event handlersUnit 12 |
|
Document Object Model |
|
Document Object Model (DOM)
These are some objects in the Document Object Model (DOM).
The window object is the default when you are writing JavaScript code.
If you code Sometimes the window and its decendents are refered to as the Browser Object Model (BOM). |
|
Event handlers |
|
sample-1-event-handlers shows different ways to address an element in the DOM.
The alternate function for onmouseover is used for button 2. |
|
Link examples |
|
sample-2-link-examples shows link examples involving events. |
|
Other examples |
|
Other examples are given in unit 10. |
|
Reading assignment |
|
Reading assignments are in the text book, Java Script, A Beginner's Guide, Second Edition, by John Pollock; McGraw Hill / Osborne, ISBN 0-07-222790-7 Review Module 7, which we read in the last assignment. Alternate reading assignments are in the text book, Java Script Concepts & Techniques Programming Interactive Web Sites, by Tina Spain McDuffie; Franklin, Beedle & Associates, ISBN 1-887902-45-7 Read Chapter 5. Look at this chapter again. This time look at the code in the event handlers. Especially look at the use of the Document Object Model. |
|
Lecture notes |
|
Do NOT read the lecture notes before hearing the lecture. If you do, you will find the lecture very boring. Read the lecture notes if you do not attend the lecture, or if you wish to review the material. |
|