Buy new:
-66% $21.79
FREE delivery Monday, July 8
Ships from: SophoclesCorner
Sold by: SophoclesCorner
$21.79 with 66 percent savings
List Price: $64.99

The List Price is the suggested retail price of a new product as provided by a manufacturer, supplier, or seller. Except for books, Amazon will display a List Price if the product was purchased by customers on Amazon or offered by other retailers at or above the List Price in at least the past 90 days. List prices may not necessarily reflect the product's prevailing market price.
Learn more
FREE delivery Monday, July 8. Details
Or fastest delivery July 1 - 2. Details
Only 1 left in stock - order soon.
$$21.79 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$21.79
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
SophoclesCorner
Ships from
SophoclesCorner
Returns
Eligible for Return, Refund or Replacement within 30 days of receipt
Eligible for Return, Refund or Replacement within 30 days of receipt
Returnable Yes
Resolutions Eligible for refund or replacement
Return Window 30 days from delivery
Refund Timelines Typically, an advance refund will be issued within 24 hours of a drop-off or pick-up. For returns that require physical verification, refund issuance may take up to 30 days after drop-off or pick up. Where an advance refund is issued, we will re-charge your payment method if we do not receive the correct item in original condition. See details here.
Late fee A late fee of 20% of the item price will apply if you complete the drop off or pick up after the ‘Return By Date’.
Restocking fee A restocking fee may apply if the item is not returned in original condition and original packaging, or is damaged or missing parts for reasons not due to seller error. See details here.
Returns
Eligible for Return, Refund or Replacement within 30 days of receipt
Returnable Yes
Resolutions Eligible for refund or replacement
Return Window 30 days from delivery
Refund Timelines Typically, an advance refund will be issued within 24 hours of a drop-off or pick-up. For returns that require physical verification, refund issuance may take up to 30 days after drop-off or pick up. Where an advance refund is issued, we will re-charge your payment method if we do not receive the correct item in original condition. See details here.
Late fee A late fee of 20% of the item price will apply if you complete the drop off or pick up after the ‘Return By Date’.
Restocking fee A restocking fee may apply if the item is not returned in original condition and original packaging, or is damaged or missing parts for reasons not due to seller error. See details here.

Return instructions

Item must be in original condition and packaging along with tag, accessories, manuals, and inserts. Unlock any electronic device, delete your account and remove all personal information.
Read full return policy
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Payment
Secure transaction
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
{{numberOfItems}} item(s) added for {{price}}
$11.90
Get Fast, Free Shipping with Amazon Prime FREE Returns
The book may have minor cosmetic wear like creased spine, cover, scratches, curled corners, folded pages, minor sunburn, minor water damage, minor bent. The book may have some highlights, notes, underlined pages. Accessories such as CD, codes, toys, may not be included . Safe and Secure Mailer. No Hassle Return The book may have minor cosmetic wear like creased spine, cover, scratches, curled corners, folded pages, minor sunburn, minor water damage, minor bent. The book may have some highlights, notes, underlined pages. Accessories such as CD, codes, toys, may not be included . Safe and Secure Mailer. No Hassle Return See less
FREE delivery Wednesday, July 3 on orders shipped by Amazon over $35
Or fastest delivery Friday, June 28. Order within 8 hrs 15 mins
Only 1 left in stock - order soon.
$$21.79 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$21.79
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
{{numberOfItems}} item(s) added for {{price}}
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

JavaScript: The Definitive Guide: Activate Your Web Pages Sixth Edition

4.6 4.6 out of 5 stars 588 ratings

There is a newer edition of this item:

{"desktop_buybox_group_1":[{"displayPrice":"$21.79","priceAmount":21.79,"currencySymbol":"$","integerValue":"21","decimalSeparator":".","fractionalValue":"79","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"fVfv1UduAZ9e8GiiX%2FsteVXyZprHvq8Ri5Vjvr9ToD7xJOwrN7NrlEJuwejVGldx4auhijJo7XHpMw93uVlZabXcGhxeuxkayHyZim4TBsbiU1%2BwKSHa6mK7w%2FJfCDrJ2cOsP5CuYPkNBwU4jFGT8wJPMJ0BkpMZXB39Pm61%2BMBfvrC5zzGpHN7QN6I46kEs","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$11.90","priceAmount":11.90,"currencySymbol":"$","integerValue":"11","decimalSeparator":".","fractionalValue":"90","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"fVfv1UduAZ9e8GiiX%2FsteVXyZprHvq8RTSciefKOCKV8DWoFo%2FyxKYxQVPcfi9SukWC0s5ZaSYUrIYYOz1ZoZLI88I3RSiwckUdRQpPd0b8Rj4CHXDpTyIVh31WoqgpIrccvnvXAOBJ%2FNIgVSM%2FiL8jWncMXKJq1JFwnqSPqudNznkTwqqB4VJXHPAjvllNu","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

Since 1996, JavaScript: The Definitive Guide has been the bible for JavaScript programmers—a programmer's guide and comprehensive reference to the core language and to the client-side JavaScript APIs defined by web browsers.

The 6th edition covers HTML5 and ECMAScript 5. Many chapters have been completely rewritten to bring them in line with today's best web development practices. New chapters in this edition document jQuery and server side JavaScript. It's recommended for experienced programmers who want to learn the programming language of the Web, and for current JavaScript programmers who want to master it.

"A must-have reference for expert JavaScript programmers...well-organized and detailed."

—Brendan Eich, creator of JavaScript, CTO of Mozilla

"I made a career of what I learned from JavaScript: The Definitive Guide.”

—Andrew Hedges, Tapulous


Amazon First Reads | Editors' picks at exclusive prices

Frequently bought together

$23.96
Get it as soon as Tuesday, Jul 2
Only 1 left in stock - order soon.
Sold by Lotus Trading and ships from Amazon Fulfillment.
+
$34.93
Get it as soon as Monday, Jul 1
In Stock
Ships from and sold by Amazon.com.
Total price:
To see our price, add these items to your cart.
Details
Added to Cart
spCSRF_Control
One of these items ships sooner than the other.
Choose items to buy together.

Editorial Reviews

Book Description

Activate Your Web Pages

From the Author

My 10 Favorite Examples from this Book
The 6th edition of
JavaScript: The Definitive Guide includes 125 examples that you can view and download from from examples.oreilly.com/9780596805531/ or from github.com/davidflanagan/javascript6_examples
These are ten of my favorites from the book. Note that many of these use new features of ES5 or of HTML5, and will only work in the newest browsers:
1) Example 1-1 is is an extended example in the first chapter of the book, intended to show readers a simple but non-trivial example of JavaScript. This is the loan calculator example from the last edition, but made much more interesting with the addition of client-side graphics, localStorage, and Ajax.
2) Example 9-7 emulates Java-style enumerated types in JavaScript. It demonstrates that JavaScript's prototype-based inheritance is so flexible that factory methods can be normal object factories or even class factories. That example is a little clearer if you look at the code in Example 9-8.
3) Example 9-16 defines a class hierarchy of abstract and concrete Set classes. This one is a favorite because it involves data types and API design. Chapter 9 includes a number of other Set examples, too.
4) Example 9-23 demonstrates the ES5 Object.defineProperty() method and defines a convenient way to inspect and modify the attributes of the properties of an object. It may not be practical, but I think it is a beautiful hack.
5) Example 15-10 is a simple stream-like API wrapped around the innerHTML property of an element. When you're generating text (a table, for example) for display it is sometimes easier to pass each chunk that you compute to a write() method than it is to concatenate it all together and set it on innerHTML.
6) Example 21-03 is an analog clock implemented as an SVG graphic with scriptable hands. I love client-side graphics, and this is a favorite of mine because making the hands rotate is so simple with SVG transforms.
7) Example 21-06 draws a fractal Koch snowflake using the tag. I like it because it draws the same line over and over again, but uses transformations to make the line appear at different locations, orientations and sizes.
8) Example 21-13 is another graphical example: it draws sparklines (edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR). This one is a favorite just because sparklines are so cool.
9) Example 22-1 uses the HTML5 geolocation API to find out where you are then uses the Google Maps API to obtain a static map of your location. I like it because geolocation (via wifi networks) is just pure magic!
10) Example 22-15 is a long example that demonstrates the IndexedDB API. I like it because the idea of a client-side database in a web browser is crazy and cool. This one is really cutting-edge, but if you're running Firefox 4, you can try it out here: davidflanagan.com/demos/zipcodes.html

Product details

  • Publisher ‏ : ‎ O'Reilly Media; Sixth edition (May 13, 2011)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 1096 pages
  • ISBN-10 ‏ : ‎ 0596805527
  • ISBN-13 ‏ : ‎ 978-0596805524
  • Item Weight ‏ : ‎ 3.75 pounds
  • Dimensions ‏ : ‎ 7 x 2.4 x 9.19 inches
  • Customer Reviews:
    4.6 4.6 out of 5 stars 588 ratings

About the author

Follow authors to get new release updates, plus improved recommendations.
David Flanagan
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

David Flanagan is a computer programmer who has spent much of the last 20 years writing books about programming languages. He now works at Mozilla. David lives with his wife and children in the Pacific Northwest, between the cities of Seattle and Vancouver.

Customer reviews

4.6 out of 5 stars
4.6 out of 5
We don’t use a simple average to calculate the overall star rating and percentage breakdown by star. Our system gives more weight to certain factors—including how recent the review is and if the reviewer bought it on Amazon. Learn more
588 global ratings
This books covers a ton!
5 Stars
This books covers a ton!
I'm new to javascript and coding in general, this book goes through everything!I haven't been through all of it.. because it's huge! this is a thick, heavy book full of great information.If you're trying to learn more about Javascript and want detailed information about a variety of topics, get this book! also the format and organization is really friendly to the eyes, I don't have to look around the pages too much to understand what's being taught.
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

Reviewed in the United States on February 24, 2014
I thought I had kept up with things since the last version. This book clued me in to new, simpler techniques becoming practical solutions only now - now that IE7 is so clearly on the way out.

Much of the book was re-written. There were a few issues that remained a bit elusive after reading the previous version (V5) and V6 cleared them up for me.

After studying chapter 15 on scripting documents, I stopped the press and made a number of important updates to my utilities file - streamlining functions that heavily supported IE 7. I changed a number of my websites to no longer support IE7 - this book gave me the information and courage to do so (the author did not suggest such a move, but it only made sense to me after getting myself up-to-snuff on the modern DOM). My code is now faster and leaner and much much much easier to follow (and debug if ever necessary) by using up-to-date basic dom methodologies such as:

A. Element.prototype to add some important/simple dom navigation methods to all elements (next(), previous() ..)

B. cssClass property to more easily, efficiently, and accurately deal with element classes (whereas I had a lot of code to do these functions and avoid RegExp for efficiency, now my methods simply pass cssClass with a simple RegExp as a fallback for IE8/9 which don't support cssClass. My perspective now is to NOT provide robust fallback for old IE, but only minimal anticipating users will make the jump from IE8 directly to IE 10/11 when their old PCs finally crap out (for those who use IE).

C. use of "data-" element attributes, which allow HTML to validate. I used to wrestle with confusing multiple classes to pass data so my html would validate - or I'd write special server / js scripts to attach data to elements as JS objects after the page loaded.

These examples aren't particularly the new sexy HTML5 initiatives, but without this book it might have taken me years to learn of them and to understand them enough to actually put them into play. And by the way, the book does a good job explaining the many HTML 5 initiatives - but I would first scan the pages to see if they were practical for my use and whether they were widely supported. But it's the small, detailed, practical things used in work-a-day scripting that makes this book so important to me.

I can't say this is a book for beginners only because of its length (1000+ pages) - but after learning JS on my own I wish I had read V5 of this book first as the others I read were all either somewhat outdated or too skimpy in important areas. This is really the only one that I read that goes into detail on the practical application of JS in client side scripting. It's the only JS book I use a reference.

My only criticism is that the book includes an entire chapter on jQuery (65 pages). I don't see the need for re-learning jQuery given browsers are moving along nicely toward standards compliance anyway. But the book would still weigh almost as much without the jQuery chapter.
7 people found this helpful
Report
Reviewed in the United States on March 16, 2012
Keep in mind I'm writing this review and I'm only 70 pages into this monster (plus some random skimming)

This book seems to be highly recommended by all the big and well known names in JS Development.

Having worked through a few substandard JS books (which there seems to be plenty of), I decided to spring for it. I'm blown away with how comprehensive this thing is. I wish all my college textbooks were up to this standard. It's true that this isn't for someone new to programming, or even someone new to JavaScript. [I found "Eloquent Javascript" (which is a free online book) to be a good starter book. I say this after having looked at the head start book (complete rubbish) and Wrox's Beginning JavaScript (crap).]

Anyway,it's dense and not something you're going to get through fast.
I'm taking the approach my Calculus Professor recommended for 'reading a math text'. You read a math text with a pencil and paper. When presented with a proof you should work through it step by step with pencil and paper so that you can see the logic behind it, then try it out with some examples. Well, instead of pencil and paper I have my laptop next to me with the cloud9 IDE up (a great and simple browser based editor I'm growing fond of). As each new concept (at least, each concept that is new to me) is presented I try it out on the editor and print the output to the console. As I work through it and grasp what it does I "poke it with a stick" by trying some different things with it. I already feel like I have a better grasp of the basics then I ever did with my previous experiences.

I'm sure this book isn't perfect...I don't think that's possible in the world of technology books. But it's substantially higher quality than many I've read including $180 college texts.
6 people found this helpful
Report
Reviewed in the United States on July 1, 2012
As a C#/C++ developer I bought this book to learn basics of JavaScript. I don't plan to develop Web apps, but because JavaScript effectively became 'the language of the web' it's nearly inevitable to know at least basic syntax and semantic of this language.

In my opinion, this book is the same to JavaScript as Bjarne Stroustrup's The C++ Programming Language to C++. The book is divided into 4 parts. First part is dedicated to core JS features. Writing style, depth of explanations, examples, all strongly resemble Stroustrup's book. Flanagan goes into great depth, he explains all problematic parts of JS itself (honestly JS syntax and semantic is sometimes bizarre) and differences between JS implementations. Especially the attention he pays to JS semantic 'quirks' (for instance automatic conversions of numbers, arrays, objects, string) that are so different to C-like languages was very useful for me. Also I like that sample programs didn't bother with any HTML code (the results are just written in comments). It's a great idea not to mix HTML and JS in these early stages of study. Only thing I didn't like was Chapter 6. I think author should have merged this chapter with chapter 9 and he could have presented object-oriented aspects of JS (especially prototype inheritance) together with the presentation of objects.

Second part is all about JS integration with web browsers. Once again author gives in-depth coverage, with many details about differences between browser implementations. Many samples contain utility functions that helps you to overcome these disparities. Chapter 19 contains good intro into jQuery and last chapter covers some new HTML 5 features like client side DB or Web Sockets.

Last two parts (about 300 pages) are JS references covering all important JS functions and classes. To be honest, this part of book was unnecessary for me. If you have Internet, you don't need this printed version of JS reference. It just makes the book thicker and heavier.

To sum up. JS The Definitive Guide is useful book for experienced developers who know some other object oriented language and want to learn JS. It's not the best IT book I have ever read but still it gave me good intro into JS.
8 people found this helpful
Report

Top reviews from other countries

Translate all reviews to English
David Morris
5.0 out of 5 stars Deep learning in JS
Reviewed in Canada on November 27, 2019
It filled in all the gaps in all other JS books I have.
Front to Back
5.0 out of 5 stars Most Comprehensive Guide
Reviewed in Australia on December 8, 2020
This is probably the most comprehensive guide that you can have if you are immersed in Javascript programming. Sites like StackExchange help a great deal find answers but if you want to need to fully understand language.
Akhilesh O.
5.0 out of 5 stars Five Stars
Reviewed in India on August 3, 2016
This is one of the best JavaScript book. Amazon service is really good.
Jürgen Scharfy
5.0 out of 5 stars Ausgezeichnet
Reviewed in Germany on December 15, 2014
Ein ausgezeichnet strukturiertes Buch. Ich bin noch lange nicht damit durch, aber bin schon längst davon begeistert. Mit (auch beruflicher) Erfahrung in vielen, teils "unmöglichen", Programmiersprachen bin ich vorrangig daran interessiert wie ich meine Vorstellungen nun in dieser, weiteren, Programmiersprache umsetzen kann um Web-Applikationen umzusetzen. Dazu muss man das "Ökosystem" der Sprache (und [X]HTML[4,5...]) kennen um seine Bedürfnisse optimal darauf abbilden zu können.
Zumindest alles was ich bisher gelesen habe, unterstützt mich darin wunderbar. Der Referenzteil in der hinteren Hälfte wird mir sicher gute Dienste leisten bis ich das notwendigste endlich auswendig weiß...

Folgende Themen werden abgedeckt:
Neben der üblichen Grundausbildung bezüglich [Control-]Statements und Datentypen, glücklicherweise Fokus auf Objektorientierung (Klassen, Prototypes, Konstruktoren, Vererebung, etc...) was bei JavaScript ja nicht zwingend nötig aber zum Glück möglich ist. Ein Kapitel über RegExp, div. Extensions und die beiden "Welten" Server- und Client-Side Javascript. Ebenso das Scripten Dokumenten (DOM) und CSS, sowie asynchrone Techniken zum Eventhandling wie Ajax und JSON. Cookies, Media (HTML5 canvas aber auch SVG)

Es sind auch Beispiele und Programm-Listings enthalten (auch mal etwas längere, die man meiner Meinung nach nicht vollständig abdrucken hätte müssen, ist aber zu verschmerzen )
One person found this helpful
Report
Gary Woodfine
5.0 out of 5 stars Probably the best programming book you'll ever buy!
Reviewed in the United Kingdom on August 1, 2014
I bought this book, along with 2 other titles "JavaScript: The Good Parts" & "Javascript Patterns", and all I can say is that this Trilogy is essential reading for any programmer.

These 3 books never leave my desktop! I have read them all cover to cover, Something I have never done with any other programming books I have ever bought. My bookshelf is littered with Half read, flicked through tomes of regret.

I can honestly say, that getting to understand the worlds most misunderstood programming language has probably been the most enjoyable experience of my programming career!

This tome is a lofty read, weighing in at a 1018 pages, it takes some doing to get through, but I can promise you, if you have been working with Javascript for a while, you are going to experience many epiphanies!

I admit as a cover to cover read, it is hard going, but it was the growing interest and the desire to learn more about the language that kept me going. I definitely feel, that after reading all three books my Javascript skills went through the roof!

The authors, style makes this book very approachable, which is a change from a majority of the programming books out there. Most books are either way too academic or far too dumbed down. I feel the author got it just right!
23 people found this helpful
Report