An edition of JavaScript: The Definitive Guide (1996)

JavaScript

The Definitive Guide

6th Edition, Covers ECMAScript 5 & HTML5
  • 4.3 (14 ratings)
  • 260 Want to read
  • 18 Currently reading
  • 21 Have read
Locate

My Reading Lists:

Create a new list

  • 4.3 (14 ratings)
  • 260 Want to read
  • 18 Currently reading
  • 21 Have read

Buy this book

Last edited by Drini
September 15, 2025 | History
An edition of JavaScript: The Definitive Guide (1996)

JavaScript

The Definitive Guide

6th Edition, Covers ECMAScript 5 & HTML5
  • 4.3 (14 ratings)
  • 260 Want to read
  • 18 Currently reading
  • 21 Have read

A revised and updated edition offers comprehensive coverage of ECMAScript 5 (the new JavaScript language standard) and also the new APIs introduced in HTML5, with chapters on functions and classes completely rewritten and updated to match current best practices and a new chapter on language extensions and subsets.

Publish Date
Publisher
O’Reilly
Language
English
Pages
1078

Buy this book

Previews available in: English

Edition Availability
Cover of: JavaScript
JavaScript: The Definitive Guide
2011, O’Reilly
in English - 6th Edition, Covers ECMAScript 5 & HTML5
Cover of: JavaScript
JavaScript: The Definitive Guide
December 15, 2001, O’Reilly Media, Inc.
in English - 4th Edition, Covers JavaScript 1.5
Cover of: JavaScript
JavaScript: The Definitive Guide
1998, O’Reilly
in English - 3rd Edition, Covers JavaScript 1.2
Cover of: JavaScript
JavaScript: The Definitive Guide
1997, O’Reilly
in English - 2nd Edition
Cover of: JavaScript
JavaScript: The Definitive Guide
1997, O’Reilly & Associates
in English - 2nd Edition, Revised and Updated

Add another edition?

Book Details


Table of Contents

Preface
Page xiii
1. Introduction to JavaScript
Page 1
1.1. Core JavaScript
Page 4
1.2. Client-Side JavaScript
Page 8
Part I. Core JavaScript
2. Lexical Structure
Page 21
2.1. Character Set
Page 21
2.2. Comments
Page 23
2.3. Literals
Page 23
2.4. Identifiers and Reserved Words
Page 23
2.5. Optional Semicolons
Page 25
3. Types, Values, and Variables
Page 29
3.1. Numbers
Page 31
3.2. Text
Page 36
3.3. Boolean Values
Page 40
3.4. null and undefined
Page 41
3.5. The Global Object
Page 42
3.6. Wrapper Objects
Page 43
3.7. Immutable Primitive Values and Mutable Object References
Page 44
3.8. Type Conversions
Page 45
3.9. Variable Declaration
Page 52
3.10. Variable Scope
Page 53
4. Expressions and Operators
Page 57
4.1. Primary Expressions
Page 57
4.2. Object and Array Initializers
Page 58
4.3. Function Definition Expressions
Page 59
4.4. Property Access Expressions
Page 60
4.5. Invocation Expressions
Page 61
4.6. Object Creation Expressions
Page 61
4.7. Operator Overview
Page 62
4.8. Arithmetic Expressions
Page 66
4.9. Relational Expressions
Page 71
4.10. Logical Expressions
Page 75
4.11. Assignment Expressions
Page 77
4.12. Evaluation Expressions
Page 79
4.13. Miscellaneous Operators
Page 82
5. Statements
Page 87
5.1. Expression Statements
Page 88
5.2. Compound and Empty Statements
Page 88
5.3. Declaration Statements
Page 89
5.4. Conditionals
Page 92
5.5. Loops
Page 97
5.6. Jumps
Page 102
5.7. Miscellaneous Statements
Page 108
5.8. Summary of JavaScript Statements
Page 112
6. Objects
Page 115
6.1. Creating Objects
Page 116
6.2. Querying and Setting Properties
Page 120
6.3. Deleting Properties
Page 124
6.4. Testing Properties
Page 125
6.5. Enumerating Properties
Page 126
6.6. Property Getters and Setters
Page 128
6.7. Property Attributes
Page 131
6.8. Object Attributes
Page 135
6.9. Serializing Objects
Page 138
6.10. Object Methods
Page 138
7. Arrays
Page 141
7.1. Creating Arrays
Page 141
7.2. Reading and Writing Array Elements
Page 142
7.3. Sparse Arrays
Page 144
7.4. Array Length
Page 144
7.5. Adding and Deleting Array Elements
Page 145
7.6. Iterating Arrays
Page 146
7.7. Multidimensional Arrays
Page 148
7.8. Array Methods
Page 148
7.9. ECMAScript 5 Array Methods
Page 153
7.10. Array Type
Page 157
7.11. Array-Like Objects
Page 158
7.12. Strings as Arrays
Page 160
8. Functions
Page 163
8.1. Defining Functions
Page 164
8.2. Invoking Functions
Page 166
8.3. Function Arguments and Parameters
Page 171
8.4. Functions as Values
Page 176
8.5. Functions as Namespaces
Page 178
8.6. Closures
Page 180
8.7. Function Properties, Methods, and Constructor
Page 186
8.8. Functional Programming
Page 191
9. Classes and Modules
Page 199
9.1. Classes and Prototypes
Page 200
9.2. Classes and Constructors
Page 201
9.3. Java-Style Classes in JavaScript
Page 205
9.4. Augmenting Classes
Page 208
9.5. Classes and Types
Page 209
9.6. Object-Oriented Techniques in JavaScript
Page 215
9.7. Subclasses
Page 228
9.8. Classes in ECMAScript 5
Page 238
9.9. Modules
Page 246
10. Pattern Matching with Regular Expressions
Page 251
10.1. Defining Regular Expressions
Page 251
10.2. String Methods for Pattern Matching
Page 259
10.3. The RegExp Object
Page 261
11. JavaScript Subsets and Extensions
Page 265
11.1. JavaScript Subsets
Page 266
11.2. Constants and Scoped Variables
Page 269
11.3. Destructuring Assignment
Page 271
11.4. Iteration
Page 274
11.5. Shorthand Functions
Page 282
11.6. Multiple Catch Clauses
Page 283
11.7. E4X: ECMAScript for XML
Page 283
12. Server-Side JavaScript
Page 289
12.1. Scripting Java with Rhino
Page 289
12.2. Asynchronous I/O with Node
Page 296
Part II. Client-Side JavaScript
13. JavaScript in Web Browsers
Page 307
13.1. Client-Side JavaScript
Page 307
13.2. Embedding JavaScript in HTML
Page 311
13.3. Execution of JavaScript Programs
Page 317
13.4. Compatibility and Interoperability
Page 325
13.5. Accessibility
Page 332
13.6. Security
Page 332
13.7. Client-Side Frameworks
Page 338
14. The Window Object
Page 341
14.1. Timers
Page 341
14.2. Browser Location and Navigation
Page 343
14.3. Browsing History
Page 345
14.4. Browser and Screen Information
Page 346
14.5. Dialog Boxes
Page 348
14.6. Error Handling
Page 351
14.7. Document Elements as Window Properties
Page 351
14.8. Multiple Windows and Frames
Page 353
15. Scripting Documents
Page 361
15.1. Overview of the DOM
Page 361
15.2. Selecting Document Elements
Page 364
15.3. Document Structure and Traversal
Page 371
15.4. Attributes
Page 375
15.5. Element Content
Page 378
15.6. Creating, Inserting, and Deleting Nodes
Page 382
15.7. Example: Generating a Table of Contents
Page 387
15.8. Document and Element Geometry and Scrolling
Page 389
15.9. HTML Forms
Page 396
15.10. Other Document Features
Page 405
16. Scripting CSS
Page 413
16.1. Overview of CSS
Page 414
16.2. Important CSS Properties
Page 419
16.3. Scripting Inline Styles
Page 431
16.4. Querying Computed Styles
Page 435
16.5. Scripting CSS Classes
Page 437
16.6. Scripting Stylesheets
Page 440
17. Handling Events
Page 445
17.1. Types of Events
Page 447
17.2. Registering Event Handlers
Page 456
17.3. Event Handler Invocation
Page 460
17.4. Document Load Events
Page 465
17.5. Mouse Events
Page 466
17.6. Mousewheel Events
Page 471
17.7. Drag and Drop Events
Page 474
17.8. Text Events
Page 481
17.9. Keyboard Events
Page 484
18. Scripted HTTP
Page 491
18.1. Using XMLHttpRequest
Page 494
18.2. HTTP by <script>: JSONP
Page 513
18.3. Comet with Server-Sent Events
Page 515
19. The jQuery Library
Page 523
19.1. jQuery Basics
Page 524
19.2. jQuery Getters and Setters
Page 530
19.3. Altering Document Structure
Page 537
19.4. Handling Events with jQuery
Page 540
19.5. Animated Effects
Page 551
19.6. Ajax with jQuery
Page 558
19.7. Utility Functions
Page 571
19.8. jQuery Selectors and Selection Methods
Page 574
19.9. Extending jQuery with Plug-ins
Page 582
19.10. The jQuery UI Library
Page 585
20. Client-Side Storage
Page 587
20.1. localStorage and sessionStorage
Page 589
20.2. Cookies
Page 593
20.3. IE userData Persistence
Page 599
20.4. Application Storage and Offline Webapps
Page 601
21. Scripted Media and Graphics
Page 613
21.1. Scripting Images
Page 613
21.2. Scripting Audio and Video
Page 615
21.3. SVG: Scalable Vector Graphics
Page 622
21.4. Graphics in a <canvas>
Page 630
22. HTML5 APIs
Page 667
22.1. Geolocation
Page 668
22.2. History Management
Page 671
22.3. Cross-Origin Messaging
Page 676
22.4. Web Workers
Page 680
22.5. Typed Arrays and ArrayBuffers
Page 687
22.6. Blobs
Page 691
22.7. The Filesystem API
Page 700
22.8. Client-Side Databases
Page 705
22.9. Web Sockets
Page 712
Part III. Core JavaScript Reference
Page 719
Part IV. Client-Side JavaScript Reference
Page 859
Index
Page 1019

Edition Notes

"Covers ECMAScript 5 & HTML5"--Cover.

Includes index.

Published in
Beijing, Sebastopol, CA

Classifications

Dewey Decimal Class
005.2/762
Library of Congress
QA76.73.J39 F53 2011

The Physical Object

Pagination
xvi, 1078 p. :
Number of pages
1078

Edition Identifiers

Open Library
OL25117017M
ISBN 10
0596805527
ISBN 13
9780596805524
LCCN
2011377767
OCLC/WorldCat
502415271

Work Identifiers

Work ID
OL1643770W

Work Description

JavaScript is a powerful, object-based scripting language; JavaScript programs can be embedded directly into HTML web pages. When combined with the Document Object Model (DOM) defined by a web browser, JavaScript allows you to create Dynamic HTML (DHTML) 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 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 such as 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, such as 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.



Description from the Fourth Edition (2007, O'Reilly Media)

Printing History

August 1996
Beta Edition.
January 1997
Second Edition.
June 1998
Third Edition.
January 2002
Fourth Edition.

Links outside Open Library

Community Reviews (0)

No community reviews have been submitted for this work.

Lists

History

Download catalog record: RDF / JSON / OPDS | Wikipedia citation
September 15, 2025 Edited by Drini Edited without comment.
September 15, 2025 Edited by Drini Add TOC from Tocky
September 15, 2025 Edited by ImportBot import existing book
December 19, 2023 Edited by ImportBot import existing book
November 30, 2011 Created by LC Bot Imported from Library of Congress MARC record