JavaScript: The Definitive Guide, Fourth Edition

By David Flanagan
November 2001
Pages: 936
ISBN 10: 0-596-00048-0 | ISBN 13: 9780596000486
starstarstarstarstar (4) (Average of 15 Customer Reviews)

This book has been updated—the edition you're requesting is OUT OF PRINT. Please visit the catalog page of the latest edition.

The latest edition is also available on Safari Books Online.

Book description

This fourth edition of the definitive reference to JavaScript, a scripting language that can be embedded directly in web pages, covers the latest version of the language, JavaScript 1.5, as supported by Netscape 6 and Internet Explorer 6. The book also provides complete coverage of the W3C DOM standard (Level 1 and Level 2), while retaining material on the legacy Level 0 DOM for backward compatibility.
Full Description

JavaScript is a powerful, object-based scripting language; JavaScript programs can be embedded directly in HTML web pages. When combined with the Document Object Model (DOM) defined by a web browser, JavaScript allows you to create Dynamic HTML content and interactive client-side web applications. JavaScript syntax is based on the popular programming languages C, C++, and Java, which makes it familiar and easy to learn for experienced programmers. At the same time, JavaScript is an interpreted scripting language, providing a flexible, forgiving programming environment in which new programmers can learn. JavaScript: The Definitive Guide provides a thorough description of the core JavaScript language and both the legacy and standard DOMs implemented in web browsers. The book includes sophisticated examples that show you how to handle common tasks, like validating form data, working with cookies, and creating portable DHTML animations. The book also contains detailed reference sections that cover the core JavaScript API, the legacy client-side API, and the W3C standard DOM API, documenting every JavaScript object, method, property, constructor, constant, function, and event handler in those APIs. This fourth edition of the bestselling JavaScript book has been carefully updated to cover JavaScript 1.5 (ECMAScript version 3). The book also provides complete coverage of the W3C DOM standard (Level 1 and Level 2), while retaining material on the legacy Level 0 DOM for backward compatibility. JavaScript: The Definitive Guide is a complete programmer's guide and reference manual for JavaScript. It is particularly useful for developers working with the latest standards-compliant web browsers, like Internet Explorer 6, Netscape 6, and Mozilla. HTML authors can learn how to use JavaScript to build dynamic web pages. Experienced programmers can quickly find the information they need to start writing sophisticated JavaScript programs. This book is an indispensable reference for all JavaScript programmers, regardless of experience level.
Post-purchase benefits:

Register your book | Submit Errata | Examples | Author Interview


Browse within this book

| Table of Contents | Index | Sample Chapter | Colophon

Book details

Fourth Edition: November 2001
ISBN: 0-596-00048-0
Pages: 936
Average Customer Reviews: starstarstarstarstar (4) (Based on 15 Reviews)


Featured customer reviews

Write a Review


The Authoritative Guide to JavaScript,  November 15 2005
Rating: StarStarStarStarStar
Submitted by Joshua Wait   [Respond | View]

"JavaScript: The Definitive Guide" is not a step by step guide to JavaScript any more than an encyclopedia is a step by step guide. The book does provide an authoritative analysis of the language including a brief history of the language, data types, operators, statements, functions, objects, and arrays.

The author does a good job of addressing some of the assumptions of the language and how these assumptions may or may not be like other languages such as C++ or Java. The author also clarifies the different levels of support for certain aspects of the language both within the discussion and with the large JavaScript reference section. The book also provides a handy and thorough W3C DOM reference for working with various aspects of DHTML.

Some of the material in this book will provide a critical understanding to JavaScript's more advanced features. With the emergence of AJAX, many web developers are turning to JavaScript to provide solutions for dynamic web based applications. Now that JavaScript is more fully supported in modern browsers, web developers may want to turn to "JavaScript: The Definitive Guide" to enhance or polish existing JavaScript skills.

If you are looking for a quick introduction to JavaScript, you may find yourself disappointed. However, if you are already familiar with JavaScript and need a reference to look up an answer to your problem or need a guide for fine tuning your DHTML skills, you may that this book is a rich resource for you.


JavaScript: The Definitive Guide, 4th Edition Review,  April 03 2004
Rating: StarStarStarStarStar
Submitted by Bud Murphy   [Respond | View]

I agree with Ken Januski. In fact, after suffering through the 3rd Edition for

several unproductive years (including just now!), I refuse to even consider another.


JavaScript: The Definitive Guide, 4th Edition Review,  January 16 2004
Rating: StarStarStarStarStar
Submitted by Derek Schulz   [Respond | View]

I find this book very useful for me. I use Javascript programming in my work frequently, and here i find many super and useful examples of using javascript code. In my opinion, JavaScript: The Definitive Guide, 4th Edition is definitive guide book for all javascript programmers.

Derek Schulz



Read all reviews


JavaScript: The Definitive Guide, 4th Edition Review,  January 03 2004
Rating: StarStarStarStarStar
Submitted by Neil Johnson   [Respond | View]

An excellent book, I am most of the way through part 1 and 2 and it has been a real eye-opener as to how JavaScript works. The examples helped make clear some of the more esoteric parts of Javascript, including the concept of functions being objects! It has also helped to explain a number of inherited javascripts that have been partially incomprehensible.

This book will definitely be sitting directly on my desk as a reference book.


JavaScript: The Definitive Guide, 4th Edition Review,  December 29 2003
Rating: StarStarStarStarStar
Submitted by Bill E   [Respond | View]

I have been teaching myself to program from books since 1991. On my shelf are books by Petzold ,Prosise, and Appleman. I have been dabbling with Javascript for the last 4 years and felt I needed something more comprehensive than the Dummies reference I have been relying on. Perhaps it is just because I fall dead center of this book's target readership but, having almost completed the Core Guide section, I would say David Flanagan has produced the best programming book I have ever read. His approach is rational and his writing is succinct. He imparts his understanding of the topic without dogmatic assertions and without his ego intruding into the text. I am devouring this book like a novel, learning something with just about every page I turn, and cannot wait to get on to the Client-Side Javascript in Part 2.


JavaScript: The Definitive Guide, 4th Edition Review,  November 10 2003
Rating: StarStarStarStarStar
Submitted by Todd   [Respond | View]

If you truly want to understand the inner workings of JavaScript (not just make a background color change every .2 seconds or open a new window), I would say this book is essential. I'm addicted... I'm on my fifth time thru the Core Language section.

David lays the language out in painstaking detail! I highly recommend!

Todd


JavaScript: The Definitive Guide, 4th Edition Review,  September 08 2003
Rating: StarStarStarStarStar
Submitted by mohamed hashem   [Respond | View]

<html>

<head>

<title> MOOOOOOON </title>

<BGSOUND SRC="Þæáì ÈÍÈß.wav" LOOP="50">

</head>

<body>

<h1> <big> <font color="red"> M O H A M E D </font></big></h1>

<script>

alert("welcome m o h a m e d");

document.write(" <h2>HELLO</h2>,");

document.write(prompt("what is your name?",""));

document.write("
<h3><font color =blue>welcome to MOOON KINGDOM</font></h3>" );

window.status="ãææææææä"

</script>

</body>

</html>


JavaScript: The Definitive Guide, 4th Edition Review,  September 08 2003
Rating: StarStarStarStarStar
Submitted by mohamed hashem   [Respond | View]

<html>

<head>

<title> MOOOOOOON </title>

<BGSOUND SRC="Þæáì ÈÍÈß.wav" LOOP="50">

</head>

<body>

<h1> <big> <font color="red"> M O H A M E D </font></big></h1>

<script>

alert("welcome m o h a m e d");

document.write(" <h2>HELLO</h2>,");

document.write(prompt("what is your name?",""));

document.write("
<h3><font color =blue>welcome to MOOON KINGDOM</font></h3>" );

window.status="ãææææææä"

</script>

</body>

</html>


JavaScript: The Definitive Guide, 4th Edition Review,  August 20 2003
Rating: StarStarStarStarStar
Submitted by Ken Januski   [Respond | View]

I've avoided the use of Javascript as much as possible, possibly due to my adverse reaction to this book (3rd edition) on my first read. Now I'm rereading it because I need so use Javascript on some pages. But in between the first and second read I've gotten much more fluent in both Java and Perl so I really trust that I'm competent to read it and most programming/scripting books. But just like on my first read the book, and maybe the language, are just as offputting as they were before.

I'm not really sure why that is but I think that the first section just doesn't do a very good job of explaining the internals. Or perhaps the internals just indicate a real hodgepodge of a language. I'm currently reading Learning Perl Objects Modules and References and it explains a very complex subject far more clearly than this. And that's not due to the humor. It just explains things more clearly. But what I really can't figure out is if that is because Perl, like Java, is just a language that is far more logical than Javascript or whether the explanations of those languages in the books I've read are just far better than this.

Sorry to rain on everybody's parade but after finding myself suffering mental anguish as I try to read through this for the second time I have to think that it's not just me.

I'm guessing that most people like it for the reference section. And they may be right. But trying to understand the language by reading the first part if like reading the manuals that used to come with software. All they did was give you a headache. I've probably read 100 O'Reilly books so I think that should be evidence enough that I don't have trouble with difficult books. There's just something about this one that makes it torture to read.

I wish it were not so.




JavaScript: The Definitive Guide, 4th Edition Review,  April 08 2003
Rating: StarStarStarStarStar
Submitted by Mike   [Respond | View]

I also have to strongly disagree with the first review. I just picked up the 4th edition for a graduate class on web scripting and development and for work as a web developer. I was almost immediately able to adapt several of the example scripts. These are very real-world examples! Apparently the reviewer has superior knowledge and only has to look up highly esoteric, very obscure points about JavaScript. I found the reference, the entire book in fact, clearly written and well worth the cost.




JavaScript: The Definitive Guide, 4th Edition Review,  February 25 2003
Rating: StarStarStarStarStar
Submitted by Kenneth Wilcox   [Respond | View]

This book has been dubbed by me as THE bible for/of JavaScripting. Plenty of information on the nitty-gritty of JavaScript. I've been using JavaScripts with my web pages for a while now (4 years) and there was a wealth of information I didn't even know existed. The bulk of the book is an invaluable reference, better than any I have seen online. If you do JavaScripting and do not own this book; I'd like to know how you do it. I think it would be painful without it.


JavaScript: The Definitive Guide, 4th Edition Review,  May 29 2002
Rating: StarStarStarStarStar
Submitted by Björn Arvidsson   [Respond | View]

This is a really good professional reference litterature for software

developers who needs to know how JavaScript works in different environments.

It might appear a little bit theoretical for people who has little programming

experience. Like most O'Reilly books, it is written by someone who both knows

the subject and how to write a readable text! I would strongly recommend it to

anyone who needs a deeper knowledge about JavaScript.




JavaScript: The Definitive Guide, 4th Edition Review,  March 08 2002
Rating: StarStarStarStarStar
Submitted by Patrick Denny   [Respond | View]

An excelent reference. This is MY Bible. The third edition travels with me from work to home. I'm salavating at the thought of the Fourth edition. Keep in mind though, this is for expert JavaScript Programmers. It is a reference, and it should be used as such. Look elsewhere if you're looking to learn the language. (actually, pick it up, but buy another book too.)


JavaScript: The Definitive Guide, 4th Edition Review,  November 27 2001
Rating: StarStarStarStarStar
Submitted by Eric Lind   [Respond | View]

I have to strongly disagree with the first review. The 3rd edition is easily one of the books I use the most. I happen to develop websites professionally and when I need information about a Javascript feature, this book is the one I turn to. It doesn't hold your hand and show you dozens of trivial, already been seen examples, it tells you what you you need to know without having to wade through superfluous fluff. I'm eagerly looking forward to getting my hands on the 4th ed so I can finally figure out what's going on with Javascript in version 6 browsers.


JavaScript: The Definitive Guide, 4th Edition Review,  November 26 2001
Rating: StarStarStarStarStar
Submitted by MR   [Respond | View]

Just not a useful book for most people (3rd ed.). It tends to present the language formally -- as a kind of theoretical construct (few real world examples). Most people don't use JavaScript to build objects and classes (something it's not very good at). They use it to build webpages.
The 3rd ed. wasn't too useful for me, even as a reference. I'd look something up and then still have to go to the web for a useful answer.




Media reviews

"This book has been dubbed by me as THE bible for/of JavaScripting. Plenty of information on the nitty-gritty of JavaScript. I've been using JavaScripts with my web pages for a while now (4 years) and there was a wealth of information I didn't even know existed. The bulk of the book is an invaluable reference, better than any I have seen online. If you do JavaScripting and do not own this book; I'd like to know how you do it. I think it would be painful without it."
--Kenneth Wilcox, Boise Software Developers Group, Feb 2003

"A pleasure to use."--Major Kearny, PC Update, Dec 2002

"JavaScript is more useful than ever, and the JavaScript you use now can be relied upon (at least as much as anything in the computer industry) to remain stable for years to come. It's worth your time to become a more capable JavaScript programmer--and David Flanagan's 'JavaScript: The Definitive Guide, Fourth Edition' may be your best tool for achieving that goal. Well-known as 'The Rhino Book' for its cover, 'JavaScript: The Definitive Guide' has long been an outstanding resource for JavaScript programmers. Flanagan writes with discipline and clarity, and his book combines excellent tutorial coverage with a detailed reference that documents the classes, methods, and properties defined by the core JavaScript language. You'll live happily with this book for a long time."--Bill Camarda, Barnes & Noble.com

"Flanagan delivers a book that more than measures up to its predecessor."
--Brian Donovan, ERCB, September 2002

"Once you've mastered the beginner Java books, this one's the one you want to live with! In true O'Reilly fashion, this book documents every nuance of the JavaScript 1.1 language specification. JavaScript features a useful discussion of the limited JavaScript support found in Microsoft Internet Explorer and provides excellent documentation of LiveConnect, the software that allows JavaScript to communicate with Java applets. High geek rating 5+."
--The Designers' Bookshelf

"If you are using Notes/Domino for web programming, you need to know JavaScript. This book will be your best friend as you code your applications...This book is an extremely comprehensive guide to both the JavaScript language and the Document Object Model (DOM) used by today's web browsers. Not only are the latest features explained, but the book also covers prior versions of the language so that you can use it to work on applications at any level. If you can only afford to get one book to help you with JavaScript coding, this would be the one to consider...It gives you all the information you need to be effective with JavaScript. I highly recommend it."
--Thomas Duff, Portland Domino/Notes User Group, October 2002

"Flanagan delivers a book that more than measures up to its predecessor - 'JS:TDG4' includes a substantial amount of new material and, as a whole, has been extensively updated...if you're in the market for a good JavaScript (or JavaScript+DOM) book, then 'JavaScript: The Definitive Guide' should undoubtedly be your first choice. Although my 3rd edition was so tattered from long use that I really had no choice but to upgrade, even owners of the 3rd edition who've managed to keep their copies in near-mint condition will probably still want to get their hands on the 4th edition if they haven't already done so-for the meatier and updated reference appendices if for no other reason. 9 out of 10."
--Brian Donovan, slashdot.org, July 26, 2002

"For serious web designers who must be capable of controlling every aspect of the web page, this guide is indispensable."
--http://it-enquirer.com, May 2002

"A must have for any web professional."
--Netsurfer Digest, May 3, 2002

"Since the earliest days of Internet scripting, web developers have considered 'JavaScript: The Definitive Guide' an essential resource. David Flanagan's approach, which combines tutorials and examples with easy-to-use syntax guides and object references, suits the typical programmer's requirements nicely."
--David Wall, amazon.com, April 2002

"a superbly presented, comprehensive, and user-friendly guide for anyone seeking to utilize what JavaScript has to offer...an essential and core reference for anyone engaged with JavaScript web programming."
--James Cox, Midwest Book Review, March 2002

"If you're familiar with any of O'Reilly's definitive guides, you know that they are famous for having a small 'how-to' section followed by some of the best reference material you can find. This is certainly true for O'Reilly's 'JavaScript: The Definitive Guide'...When O'Reilly prints a book with the words 'definitive' in the title, they really aren't kidding. This is one of the best reference books on JavaScript you can find. If you regularly use JavaScript in applications, you'll want to set this book nearby."
--Salt Lake City ColdFusion User Group, March 2002

"'JavaScript Definitive Guide' is certainly a complete reference to the JavaScript programming language?For serious Web designers who must be capable of controlling every aspect of the Web page, this guide is indispensable."
--http://it-enquirer.com/, March 2002

Best of 2001: Customers' Picks, amazon.com

Best of 2001: Web Development Editors' Picks, amazon.com

"Once again David Flanagan has created the definitive reference text for JavaScript.. While not a JavaScript in 24 hours how-to, this book has plenty of illustrative examples and explanatory text. This combination of explanatory material and matching extensive reference sections make this a must-have book for any JavaScript programmer. Highly recommended."
--Andy King, www.webreference.com, Dec 2001

"This is my most dog-eared book."
--About Cyberworld, Nov 9, 2001

Best of 2001 Award; Computing and Internet, Fatbrain.com

"Learning JavaScript is fast becoming a prerequisite to developing powerful Websites...whatever your level of programming experience, a great resource is 'JavaScript: The Definitive Guide.'"
--MIX, Feb 2001

Hide extended reviews


See larger cover