Book Section

Teach Yourself DHTML
About the Book
Other Books

General Section
Discussion Forum
Articles / Tips
JavaScript Links
About the Author
Privacy Policy
Contact Me

Other Sites
Website Workshop
JavaScript Weblog

Teach Yourself DHTML in 24 Hours

Purchase this book at My latest book focuses on DHTML (Dynamic HTML) using JavaScript and the new W3C DOM.
Available: December 7, 2001
View large cover picture
View the back cover
Purchase this book at
Examples - Downloads - Exercises - Errata / Notes
About the Book

Welcome! You've reached the online headquarters for my latest book, Teach Yourself DHTML in 24 Hours. This book is a great introduction to DHTML (Dynamic HTML) for anyone who knows how to create a Web page with HTML and to use a bit of JavaScript.

Reading the Book Now? be sure to check out the online versions of the examples from the book. You can also download your own copies to try. Visit our errata page to check for last-minute corrections, and stop by our forum if you have questions for the author or other readers.

What is DHTML?

Let's get this out of the way first: DHTML is not a version of HTML, or a version of JavaScript. DHTML is an informal name for a combination of several technologies that work together to give you unprecedented control over your Web pages:

  • HTML (Hypertext Markup Language), the standard Web design language
  • JavaScript, the Web's foremost scripting language
  • CSS (Cascading Style Sheets), the standard way to specify fonts, layout, and formatting
  • The W3C DOM (Document Object Model), the new standard that assigns objects to all parts of a Web page
What can DHTML Do?

DHTML allows you to change the content, layout, and formatting of a Web page dynamically - without reloading the page. For example, you can change the color, the size, or the content of this section's heading above. Click the links in the previous sentence to try it, and click this one to change it back.

See this book's examples page for many other things you can do with DHTML. (Note: the examples here require a browser that supports the W3C DOM. See below for details.)

Which Browsers Support DHTML?

Although DHTML was supported to some degree by earlier browsers, this book focuses on the new W3C DOM. This DOM is supported by Internet Explorer 5.0 or later and by Netscape 6.0 or later, and either browser will work with virtually all of this book's examples.

How Can This Book Help?

This book will teach you all of the fundamentals, whether you want to master DHTML or simply add some quick gadgets to a page. It's divided into 24 lessons, each meant to take an hour or less of your time, and each culminating in one or more practical examples. The examples range from simple demonstrations of DHTML techniques to larger, more complex applications - check out the Hangman game from Hour 23.

How Can I Learn More?

To learn more about DHTML and its capabilities, visit the examples page. There you can see the list of examples from the book and try them out for yourself. Of course, I wouldn't get this far without telling you to buy the book - find it at or your local bookstore. Last but not least, visit the forum and share your DHTML questions and ideas with me and the other visitors.

(c) 1997-2002 Starling Technologies and Michael Moncur. Portions (c) Sams Publishing.