Table of contents
-
A brief history of JavaScript
- The origins of JavaScript
- The browser wars
- Raising the standard
-
JavaScript Syntax
- What you'll need
- Syntax
- Statements
- Variables
- Operations
- Functions
- Objects
-
The Document Object Model
- D is for document
- Objects of desire
- Dial M for model
- Nodes
-
A JavaScript image gallery
- The markup
- The JavaScript
- Applying the JavaScript
- Expanding the function
-
- Please don't let me be misunderstood
- Graceful degradation
- The lessons of CSS
- Unobtrusive JavaScript
- Backwards compatibility
-
Image Gallery Revisited
- A quick recap
- Does it degrade gracefully?
- Is the JavaScript unobtrusive?
- Assuming too much
- DOM Core and HTML-DOM
-
Creating markup on the fly
- document.write
- innerHTML
- DOM methods
- Revisiting the image gallery
-
Enhancing content
- What not to do
- Making the invisible visible
- The content
- HTML or XHTML?
- The markup
- The CSS
- The JavaScript
- Displaying abbreviations
- Displaying citations
- Displaying access keys
-
CSS-DOM
- Three sheets to the Web
- Structure
- Presentation
- Behavior
- The style property
- Knowing when to use DOM styling
- className
-
Animated Slideshow
- What is animation?
- Practical animation
- Refining the animation
- Final touches
-
Putting it all together
- The brief
- Design
- CSS
- Markup
- JavaScript
- Page highlighting
- JavaScript slideshow
- Internal navigation
- JavaScript image gallery
- Table enhancements
- Form enhancements
- Labels
- Default values
- Form validation
-
The Future of DOM Scripting
- The state of the Web
- Ajax
- The XMLHttpRequest object
- An explosion of Ajax
- Progressive enhancement with Ajax
- Applications on the Web
Reference
- Methods
- Creating nodes
- Duplicating nodes
- Inserting nodes
- Removing nodes
- Replacing nodes
- Manipulating nodes
- Finding nodes
- Properties
- Node properties
- Traversing the node tree