JavaScript: The Definitive Guide

Category: Programming
4.5
All Stack Overflow 23
This Month Stack Overflow 2

About This Book

This Fifth Edition is completely revised and expanded to cover JavaScript as it is used in today's Web 2.0 applications. This book is both an example-driven programmer's guide and a keep-on-your-desk reference, with new chapters that explain everything you need to know to get the most out of JavaScript, including:

  • Scripted HTTP and Ajax
  • XML processing
  • Client-side graphics using the canvas tag
  • Namespaces in JavaScript--essential when writing complex programs
  • Classes, closures, persistence, Flash, and JavaScript embedded in Java applications

Part I explains the core JavaScript language in detail. If you are new to JavaScript, it will teach you the language. If you are already a JavaScript programmer, Part I will sharpen your skills and deepen your understanding of the language.

Part II explains the scripting environment provided by web browsers, with a focus on DOM scripting with unobtrusive JavaScript. The broad and deep coverage of client-side JavaScript is illustrated with many sophisticated examples that demonstrate how to:

  • Generate a table of contents for an HTML document
  • Display DHTML animations
  • Automate form validation
  • Draw dynamic pie charts
  • Make HTML elements draggable
  • Define keyboard shortcuts for web applications
  • Create Ajax-enabled tool tips
  • Use XPath and XSLT on XML documents loaded with Ajax
  • And much more

Part III is a complete reference for core JavaScript. It documents every class, object, constructor, method, function, property, and constant defined by JavaScript 1.5 and ECMAScript Version 3.

Part IV is a reference for client-side JavaScript, covering legacy web browser APIs, the standard Level 2 DOM API, and emerging standards such as the XMLHttpRequest object and the canvas tag.

More than 300,000 JavaScript programmers around the world have madethis their indispensable reference book for building JavaScript applications.

"A must-have reference for expert JavaScript programmers...well-organized and detailed."-- Brendan Eich, creator of JavaScript

Comments

by anonymous   2019-07-21

OReilly's Javascript: The Definitive Guide, 5th Edition (or later) http://www.amazon.com/JavaScript-Definitive-Guide-David-Flanagan/dp/0596101996/ref=dp_ob_title_bk

by anonymous   2019-07-21

Yes, try to avoid libraries while you learn JavaScript well. But one caveat, jQuery will make your life a lot easier for things like browser compatibility. And it can be very useful for semi-complicated stuff like animations.

The best tips for learning JavaScript are to check out Doug Crockford's videos on YouTube, and if you want to get right in at the nuts and bolts of the language, then pick up a copy of The Definitive Javascript, which Doug Crockford admits is the best book available on the subject.

http://www.amazon.co.uk/JavaScript-Definitive-Guide-David-Flanagan/dp/0596101996

See this vid to get you started:

http://www.bing.com/videos/search?q=Doug%20Crockford&qs=n&form=QBVR&pq=doug%20crockford&sc=2-14&sp=-1&sk=#view=detail&mid=2AC2E38A0E1544A05C782AC2E38A0E1544A05C78

And good luck. You'll love JavaScript if you learn it properly.

by 17 of 26   2017-08-20

If you're looking for a reference book on the language, JavaScript: The Definitive Guide is the book to get.

Visual Studio is by far the best Javascript debugging environment, but that's not useful to you if you're limited to Linux & Mac. On that platform, I would agree with the suggestions for Firefox with Firebug and Venkman.

by anonymous   2017-08-20

This is expected, exec() returns a single match but provides more info about the match than match(). If you just want all the matches, use match(). From JavaScript: The Definitive Guide:

Recall that match() returns an array of matches when passed a global regular expresion. exec(), by contrast, always returns a single match and provides complete information about that match. When exec() is called on a regular epression that has the g flag, it sets the lastIndex property of the matched substring. When exec() is invoked a second time for the same regular expression, it begins its search at the character position indicated by the lastIndex property.