JavaScript : The Definitive Guide

by
Edition: 5th
Format: Paperback
Pub. Date: 2006-08-01
Publisher(s): Oreilly & Associates Inc
List Price: $53.49

Rent Book

Select for Price
There was a problem. Please try again later.

Rent Digital

Rent Digital Options
Online:1825 Days access
Downloadable:Lifetime Access
$47.99
*To support the delivery of the digital material to you, a non-refundable digital delivery fee of $3.99 will be charged on each digital item.
$47.99*

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

Part tutorial and part reference, this book not only helps you develop new JavaScript skills by building on your basic understanding of HTML, CSS, and the Web in general, it also serves as a detailed reference for the more experienced web developers among you. Furthermore, the fifth edition now includes advanced material on the latest developer topics, such as scripting Flash with JavaScript, HTTP and Ajax, DOM, SVG, XML, web services, and remote scripting. Like all O'Reilly Definitive Guides, this book provides the most comprehensive reference section on the market, documenting every object, property, method, event handler, function and constructor used by client-side JavaScript. The new edition has also been revamped to cover the latest browsers, language updates, extensions, and JavaScript standards. No wonder it's the top-selling JavaScript book of all time. No other book comes close.

Author Biography

David Flanagan is a computer programmer who spends most of his time writing about JavaScript and Java. His books with O'Reilly include Java in a Nutshell, Java Examples in a Nutshell, Java Foundation Classes in a Nutshell, JavaScript: The Definitive Guide, and JavaScript Pocket Reference. David has a degree in computer science and engineering from the Massachusetts Institute of Technology. He lives with his wife and children in the U.S. Pacific Northwest bewteen the cities of Seattle, Washington and Vancouver, British Columbia. David has a blog at www.davidflanagan.com.

Table of Contents

Preface xv
Introduction to JavaScript
1(14)
What Is JavaScript?
2(1)
Versions of JavaScript
2(2)
Client-Side JavaScript
4(5)
JavaScript in Other Contexts
9(1)
Exploring JavaScript
10(5)
Part I. Core JavaScript
Lexical Structure
15(6)
Character Set
15(1)
Case Sensitivity
16(1)
Whitespace and Line Breaks
16(1)
Optional Semicolons
16(1)
Comments
17(1)
Literals
17(1)
Identifiers
18(1)
Reserved Words
19(2)
Datatypes and Values
21(28)
Numbers
22(3)
Strings
25(6)
Boolean Values
31(1)
Functions
32(1)
Objects
33(2)
Arrays
35(2)
null
37(1)
undefined
37(1)
The Date Object
38(1)
Regular Expressions
38(1)
Error Objects
39(1)
Type Conversion Summary
39(1)
Primitive Datatype Wrapper Objects
40(2)
Object-to-Primitive Conversion
42(1)
By Value Versus by Reference
43(6)
Variables
49(10)
Variable Typing
49(1)
Variable Declaration
50(1)
Variable Scope
51(2)
Primitive Types and Reference Types
53(2)
Garbage Collection
55(1)
Variables as Properties
56(1)
Variable Scope Revisited
57(2)
Expressions and Operators
59(24)
Expressions
59(1)
Operator Overview
60(3)
Arithmetic Operators
63(2)
Equality Operators
65(3)
Relational Operators
68(2)
String Operators
70(1)
Logical Operators
71(2)
Bitwise Operators
73(2)
Assignment Operators
75(2)
Miscellaneous Operators
77(6)
Statements
83(23)
Expression Statements
83(1)
Compound Statements
84(1)
if
85(2)
else if
87(1)
switch
87(3)
while
90(1)
do/while
91(1)
for
91(2)
for/in
93(1)
Labels
94(1)
break
94(2)
continue
96(1)
var
97(1)
function
97(2)
return
99(1)
throw
99(1)
try/catch/finally
100(2)
with
102(1)
The Empty Statement
103(1)
Summary of JavaScript Statements
104(2)
Objects and Arrays
106(18)
Creating Objects
106(1)
Object Properties
107(2)
Objects as Associative Arrays
109(2)
Universal Object Properties and Methods
111(2)
Arrays
113(1)
Reading and Writing Array Elements
114(4)
Array Methods
118(4)
Array-Like Objects
122(2)
Functions
124(26)
Defining and Invoking Functions
124(4)
Function Arguments
128(6)
Functions as Data
134(2)
Functions as Methods
136(1)
Constructor Functions
137(1)
Function Properties and Methods
137(2)
Utility Function Examples
139(2)
Function Scope and Closures
141(7)
The Function() Constructor
148(2)
Classes, Constructors, and Prototypes
150(33)
Constructors
150(1)
Prototypes and Inheritance
151(6)
Simulating Classes in JavaScript
157(7)
Common Object Methods
164(3)
Superclasses and Subclasses
167(4)
Extending Without Inheriting
171(3)
Determining Object Type
174(5)
Example: A defineClass( ) Utility Method
179(4)
Modules and Namespaces
183(16)
Creating Modules and Namespaces
184(5)
Importing Symbols from Namespaces
189(3)
Module Utilities
192(7)
Pattern Matching with Regular Expressions
199(14)
Defining Regular Expressions
199(9)
String Methods for Pattern Matching
208(2)
The RegExp Object
210(3)
Scripting Java
213(22)
Embedding JavaScript
213(8)
Scripting Java
221(14)
Part II. Client-Side JavaScript
JavaScript in Web Browsers
235(35)
The Web Browser Environment
236(6)
Embedding Scripts in HTML
242(6)
Event Handlers in HTML
248(2)
JavaScript in URLs
250(2)
Execution of JavaScript Programs
252(4)
Client-Side Compatibility
256(6)
Accessibility
262(1)
JavaScript Security
263(5)
Other Web-Related JavaScript Embeddings
268(2)
Scripting Browser Windows
270(28)
Timers
271(1)
Browser Location and History
272(2)
Obtaining Window, Screen, and Browser Information
274(6)
Opening and Manipulating Windows
280(5)
Simple Dialog Boxes
285(1)
Scripting the Status Line
286(2)
Error Handling
288(1)
Multiple Windows and Frames
289(6)
Example: A Navigation Bar in a Frame
295(3)
Scripting Documents
298(47)
Dynamic Document Content
299(2)
Document Properties
301(2)
Legacy DOM: Document Object Collections
303(4)
Overview of the W3C DOM
307(11)
Traversing a Document
318(2)
Finding Elements in a Document
320(4)
Modifying a Document
324(4)
Adding Content to a Document
328(8)
Example: A Dynamically Created Table of Contents
336(5)
Querying Selected Text
341(1)
The IE 4 DOM
342(3)
Cascading Style Sheets and Dynamic HTML
345(43)
Overview of CSS
346(9)
CSS for DHTML
355(16)
Scripting Inline Styles
371(9)
Scripting Computed Styles
380(1)
Scripting CSS Classes
381(1)
Scripting Stylesheets
382(6)
Events and Event Handling
388(49)
Basic Event Handling
389(10)
Advanced Event Handling with DOM Level 2
399(10)
The Internet Explorer Event Model
409(10)
Mouse Events
419(6)
Key Events
425(8)
The onload Event
433(2)
Synthetic Events
435(2)
Forms and Form Elements
437(19)
The Form Object
438(1)
Defining Form Elements
439(4)
Scripting Form Elements
443(8)
Form Verification Example
451(5)
Cookies and Client-Side Persistence
456(22)
An Overview of Cookies
456(3)
Storing Cookies
459(1)
Reading Cookies
460(1)
Cookie Example
461(4)
Cookie Alternatives
465(11)
Persistent Data and Security
476(2)
Scripting HTTP
478(24)
Using XMLHttpRequest
479(6)
XMLHttpRequest Examples and Utilities
485(8)
Ajax and Dynamic Scripting
493(6)
Scripting HTTP with <script> Tags
499(3)
JavaScript and XML
502(28)
Obtaining XML Documents
502(6)
Manipulating XML with the DOM API
508(4)
Transforming XML with XSLT
512(3)
Querying XML with XPath
515(5)
Serializing XML
520(1)
Expanding HTML Templates with XML Data
520(4)
XML and Web Services
524(3)
E4X: ECMAScript for XML
527(3)
Scripted Client-Side Graphics
530(43)
Scripting Images
531(8)
Graphics with CSS
539(8)
SVG: Scalable Vector Graphics
547(6)
VML: Vector Markup Language
553(4)
Graphics in a <canvas>
557(3)
Graphics with Flash
560(5)
Graphics with Java
565(8)
Scripting Java Applets and Flash Movies
573(378)
Scripting Applets
574(2)
Scripting the Java Plug-in
576(2)
Scripting with Java
578(4)
Scripting Flash
582(7)
Scripting Flash 8
589(6)
Part III. Core JavaScript Reference
Core JavaScript Reference
595(122)
Part IV. Client-Side JavaScript Reference
Client-Side JavaScript Reference
717(234)
Index 951

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.