Murach's JavaScript and DOM Scripting
Advanced DOM manipulation
Many JavaScript applications need to manipulate the DOM tree.
That's why this chapter shows you how to detect when the DOM
is ready, how to search the DOM, and how to modify it.
|
|
|
|
A problem with the load event |
524 |
|
The code that illustrates this
problem |
526 |
|
How to use a ready method to detect
when the DOM is ready |
528 |
|
The JavaScript library that contains
the ready method |
530 |
|
|
How to use a walk method to walk
the DOM tree |
534 |
|
How to use a getElementsByClassname
method to search the DOM |
538 |
|
A JavaScript library for walking
and searching the DOM |
540 |
|
|
How to create new DOM nodes |
542 |
|
How to add and remove DOM nodes |
544 |
|
How to use a document fragment |
546 |
|
|
The user interface |
548 |
|
The XHTML file |
548 |
|
The headlines_library.js file |
550 |
|
The headlines.js file |
552 |
|
|
|
|
|
|
© Copyright 1998-
Mike Murach & Associates, Inc. All rights reserved.
|