Gregory M. Kapfhammer
Course Web Site
Office Hours
Teaching Assistants
Slack Communication
Relevant Tweets
Email Communication
Key Concept
Corresponding Diagram
In-Class Discussion
In-Class Activity
Details in the Textbook
A DOM tree is a set of nodes
It stores data elements hierarchically
It contains a root DOM node
The nodes have a parent-child relationship
It represents an entire HTML document
What does this look like in memory?
Selection methods
Family manipulation methods
Event methods
Why do we need these methods?
What are the benefits of these methods?
getElement
methodChange an element's style
Change an element's content
Create new DOM elements
What are the benefits of this approach?
Mouse
Keyboard
Touch
Form
Frame
Sense and respond to an event