DOM Scripting: Web Design with JavaScript and the Document Object Model

Front Cover
Apress, Nov 7, 2006 - Computers - 368 pages
14 Reviews
This book deals with a programming language, but it isn’t intended for programmers. This is a book for web designers. Specifically, this book is intended for standards-aware designers who are comfortable using CSS and XHTML. If that sounds like you, read on... This book is made up of equal parts code and concepts. Don’t be frightened by the code: I know it might look intimidating at first, but once you’ve grasped the concepts behind the code, you’ll find yourself reading and writing in a new language. Learning a programming language might seem like a scary prospect, but it needn’t be. DOM Scripting might appear to be more verbose than, say, CSS, but once you’ve got the hang of the syntax, you’ll find yo- self armed with a powerful web development tool. In any case, the code is there simply to illustrate the concepts. I’ll let you in on a secret: nobody memorizes all the syntax and keywords that are part and parcel of any programming language. That’s what reference books are for. This isn’t a reference book. I’m going to cover the bare minimum of syntax required to get up and running with JavaScript. I’m really going to focus on the ideas behind DOM Scripting. A lot of these ideas might already be familiar to you: graceful degradation, progressive enhancement, and user-centered design are important concepts in any aspect of front-end web development.

What people are saying - Write a review

User ratings

5 stars
4 stars
3 stars
2 stars
1 star

LibraryThing Review

User Review  - Molave - LibraryThing

A pretty good introduction to the Document Object Model (DOM) and how to apply it to creating web sites. The basics are covered (although not in much depth), and a few samples are shown in detail. Perfect for a beginner, but may bore the intermediate coder. Read full review

LibraryThing Review

User Review  - niwig - LibraryThing

Great introduction to scripting for novice developers. Each chapter builds on the previous chapter, providing clear instructions for building an increasingly complex Web application. Keith provides clear and thorough explanations of what is happening every step of the way. Read full review


Lets start with the placeholder image Im going to use
Expanding the function
Heres an example of the image gallery with a simple
The JavaScript has created markup on the fly and added
Reference the displayAccesskeysjs file with a new set of script
This paragraph has been marked up with an id of
Load photoshtml in a web browser to see the image

Other editions - View all

Common terms and phrases

Popular passages

Page 14 - The Document Object Model is a platform- and language-neutral interface that will allow programs and scripts to dynamically access and update the content, structure, and style of documents.
Page 22 - English grammar demands that sentences begin with a capital letter and end with a period, the syntax of JavaScript is much more forgiving.

References to this book

About the author (2006)

Jeremy Keith is a web developer living and working in Brighton, England. Working with the web consultancy firm Clearleft (, he enjoys building accessible, elegant websites using the troika of web standards: XHTML, CSS, and the DOM. His online home is Jeremy is also a member of the, where he serves as joint leader of the DOM Scripting Task Force. When he's not building websites, Jeremy plays bouzouki in the band Salter Cane ( He is also the creator and curator of one of the web's largest online communities dedicated to Irish traditional music,

Bibliographic information