JavaScript & DHTML Cookbook and over one million other books are available for Amazon Kindle. Learn more
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images
Have one to sell? Sell on Amazon

JavaScript & DHTML Cookbook (2nd edition) Paperback – August 15, 2007

ISBN-13: 978-0596514082 ISBN-10: 0596514085 Edition: 2nd
Buy used
Buy new
Used & new from other sellers Delivery options vary per offer
82 used & new from $0.01
Amazon Price New from Used from
"Please retry"
Library Binding
"Please retry"
Paperback, August 15, 2007
"Please retry"
$1.44 $0.01
Free Two-Day Shipping for College Students with Amazon Student Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student

All You Can Pay: How Companies Use Our Data to Empty Our Wallets by Anna Bernasek
Information and Its Discontents
Browse books on computers, technology, and the effects on society. Learn more | See related books
$32.48 FREE Shipping on orders over $35. In Stock. Ships from and sold by Gift-wrap available.

Editorial Reviews


"...does for web scripting and dynamic HTML what the best cookbooks do for food...The best cookbooks distil the wisdom of an experienced and skilled master - and this is precisely what Danny Goodman does here. " TechBook Report --This text refers to an out of print or unavailable edition of this title.

About the Author

Danny Goodman has been writing about personal computers and consumer electronics since the late 1970s. In 2006, he celebrated 25 years as a freelance writer and programmer, having published hundreds of magazine articles, several commercial software products, and three dozen computer books. Through the years, his most popular book titles - on HyperCard, AppleScript, JavaScript, and Dynamic HTML - have covered programming environments that are both accessible to non-professionals, yet powerful enough to engage experts. His Dynamic HTML: The Definitive Reference, now in its third edition, is an O'Reilly bestseller.To keep up to date on the needs of web developers for his recent books, Danny is also a programming consultant to some of the industry's top intranet development groups and corporations. His expertise in implementing sensible cross-browser client-side scripting solutions is in high demand and allows him to, in his words, "get code under my fingernails while solving real-world problems."

Danny was born in Chicago, Illinois during the Truman Administration. He earned a B.A. and M.A. in Classical Antiquity from the University of Wisconsin, Madison. He moved to California in 1983 and lives in a small San Francisco area coastal community, where he alternates views between computer screens and the Pacific Ocean.


Shop the new
New! Introducing the, a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Product Details

  • Paperback: 606 pages
  • Publisher: O'Reilly Media; 2nd edition (August 18, 2007)
  • Language: English
  • ISBN-10: 0596514085
  • ISBN-13: 978-0596514082
  • Product Dimensions: 7 x 1.1 x 9.2 inches
  • Shipping Weight: 1.9 pounds (View shipping rates and policies)
  • Average Customer Review: 4.7 out of 5 stars  See all reviews (34 customer reviews)
  • Amazon Best Sellers Rank: #1,103,585 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

4.7 out of 5 stars
Share your thoughts with other customers

Most Helpful Customer Reviews

53 of 57 people found the following review helpful By neihtn on May 15, 2003
Format: Paperback
Danny Goodman is the author of "JavaScript Bible", probably the most popular book on JavaScript as it went through 5 editions, the last one being the Gold edition published in 2001. I have used JavaScript Bible extensively and intensively, often longing for a cross-index of recipes for solving problems. This new book by the author addresses that need in the form of a cookbook, one carefully written and eminently readable. Not only does he give clear recipes, he also discusses some history and background, lists which browser version is required, both for Netscape and Internet Explorer, then weighs the pros and cons of different approaches.
The recipes range from the mundane, like opening a window, to the more esoteric for positioning page elements or creating dynamic contents. Even if one does not plan to use a recipe, it is still enlightening to see how JavaScript or some feature of it is brought to bear on solving a particular problem. Most cookbooks assume you already know the subject quite well, then launch on intricate discussions often discouraging to neophytes. Here, the way Danny Goodman writes, the clarity of his style, and the completeness of his coverage, make this book well suited to every reader level. If your JavaScript knowledge is only nascent, you will be enlightened with this book. If you are a JavaScript "expert", be surprised that you will still learn many new techniques.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
26 of 26 people found the following review helpful By Eric & Lisa on March 29, 2005
Format: Paperback
I am an ASP.NET developer, and I have never been too crazy about JavaScript. It is much too slow to develop, it is finicky to debug, and maintenance is just ridiculous.

That is exactly why I love this book. It shows me exactly what I need to know to add some VERY sophisticated client-side pizzazz to my applications. Unlike most programming books, you don't have to read half the book to understand the advanced concepts. Each "recipe" has a more-than-adequate supporting explanation.

For the past FOUR YEARS, I have consulted this book above all other JavaScript references. And now with ASP.NET AJAX released, it is more helpful than ever...easily giving you the edge over other .NET developers that live in a "code-behind-only" world. It is well worth the price.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
26 of 27 people found the following review helpful By Jase T. Wolfe on November 17, 2005
Format: Paperback
In the computer world, cookbook / tips / "hack" style books are a funny thing. Unlike food cookbooks you purchase when you have a specific culinary goal, scripting cookbooks are typically bought without much knowledge of the information that they are going to present to you. This can be doubly so when you are purchasing from an online vendor that has not made the table of contents (TOC) available. At the time I write this, has not. O'Reilly's does, and I encourage you to visit this title's TOC page on O'Reilly's web site first before you purchase.

For what this book covers, it is covered very well. The included scripting projects are indeed useful, efficiently written, presented in a user friendly manner, and as a whole contain very few errors. Each script example is presented by introducing a web design problem, followed by a solution discussion, a working script, and a follow-up if needed. None of the code examples in the book are included, but again, O'Reilly's web site for this book has the files available for download.

This is not a stand-alone title, it is not for JavaScript beginners, and it is not a cookbook that provides generic solutions. This is a great companion book to the author's other book, "Dynamic HTML: The Definitive Reference" (ISBN 1565924940) and David Flanagan's title "JavaScript: The Definitive Guide" (ISBN 0596000480). Web developers looking to better utilize HTML and JavaScript will find (or already know) that these two mentioned books are invaluable. As for this cookbook, if you see something in the TOC that interests you, make the purchase and you certainly wont regret it. But if you don't, feel comfortable skipping it.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
28 of 31 people found the following review helpful By Thomas Duff HALL OF FAMETOP 1000 REVIEWERVINE VOICE on January 7, 2004
Format: Paperback
[Updated review of the 2nd edition - 05/15/2008]

Even after programming for all these years, I *still* like to see examples of a new (or old) technique before I try and code it. That's why I like JavaScript & DHTML Cookbook by Danny Goodman.

From simple JavaScript statements to complex web page parsing, Goodman shows you working code while also explaining how it works.

Table of Contents:

1. Strings
2. Numbers and Dates
3. Arrays and Objects
4. Variables, Functions, and Flow Control
5. Browser Feature Detection
6. Managing Browser Windows
7. Managing Multiple Frames
8. Dynamic Forms
9. Managing Events
10. Page Navigation Techniques
11. Managing Style Sheets
12. Visual Effects for Stationary Content
13. Positioning HTML Elements
14. Creating Dynamic Content
15. Dynamic Content Applications

Appendix A: Keyboard Event Character Values
Appendix B: Keyboard Key Code Values
Appendix C: ECMAScript Reserved Keywords

Since JavaScript is not a language I use on a daily basis (unlike LotusScript where I live and breathe), my mind doesn't automatically start writing code when someone asks for a feature in one of my Domino Web apps. In fact, I'm usually in a position of not knowing what I don't know. It's like trying to look up a word in the dictionary when you don't know how to spell it; it makes it really difficult.

This is where I value Goodman's cookbook approach to JavaScript. Rather than focus on all the methods and properties of a JavaScript object, he lists things by activity, such as converting between Unicode values and String characters or auto-tabbing for fixed-length text boxes.
Read more ›
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Recent Customer Reviews

Set up an Amazon Giveaway

Amazon Giveaway allows you to run promotional giveaways in order to create buzz, reward your audience, and attract new followers and customers. Learn more
JavaScript & DHTML Cookbook (2nd edition)
This item: JavaScript & DHTML Cookbook (2nd edition)
Price: $32.48
Ships from and sold by