Please consider the latest edition.
-
Chapter 1 Introduction to JavaScript
-
JavaScript Myths
-
Versions of JavaScript
-
Client-Side JavaScript
-
JavaScript in Other Contexts
-
Client-Side JavaScript: Executable Content in Web Pages
-
Client-Side JavaScript Features
-
JavaScript Security
-
Example: Computing Loan Payments with JavaScript
-
Using the Rest of This Book
-
Exploring JavaScript
-
-
Core JavaScript
-
Chapter 2 Lexical Structure
- Character Set
- Case Sensitivity
- Whitespace and Line Breaks
- Optional Semicolons
- Comments
- Literals
- Identifiers
- Reserved Words
-
Chapter 3 Data Types and Values
- Numbers
- Strings
- Boolean Values
- Functions
- Objects
- Arrays
- null
- undefined
- The Date Object
- Regular Expressions
- Error Objects
- Primitive Data Type Wrapper Objects
-
Chapter 4 Variables
- Variable Typing
- Variable Declaration
- Variable Scope
- Primitive Types and Reference Types
- Garbage Collection
- Variables as Properties
- Variable Scope Revisited
-
Chapter 5 Expressions and Operators
- Expressions
- Operator Overview
- Arithmetic Operators
- Equality Operators
- Relational Operators
- String Operators
- Logical Operators
- Bitwise Operators
- Assignment Operators
- Miscellaneous Operators
-
Chapter 6 Statements
- Expression Statements
- Compound Statements
- if
- else if
- switch
- while
- do/while
- for
- for/in
- Labels
- break
- continue
- var
- function
- return
- throw
- try/catch/finally
- with
- The Empty Statement
- Summary of JavaScript Statements
-
Chapter 7 Functions
- Defining and Invoking Functions
- Functions as Data
- Function Scope: The Call Object
- Function Arguments: The Arguments Object
- Function Properties and Methods
-
Chapter 8 Objects
- Objects and Properties
- Constructors
- Methods
- Prototypes and Inheritance
- Object-Oriented JavaScript
- Objects as Associative Arrays
- Object Properties and Methods
-
Chapter 9 Arrays
- Arrays and Array Elements
- Array Methods
-
Chapter 10 Pattern Matching with Regular Expressions
- Defining Regular Expressions
- String Methods for Pattern Matching
- The RegExp Object
-
Chapter 11 Further Topics in JavaScript
- Data Type Conversion
- By Value Versus by Reference
- Garbage Collection
- Lexical Scoping and Nested Functions
- The Function( ) Constructor and Function Literals
- Netscape's JavaScript 1.2 Incompatibilities
-
-
Client-Side JavaScript
-
Chapter 12 JavaScript in Web Browsers
- The Web Browser Environment
- Embedding JavaScript in HTML
- Execution of JavaScript Programs
-
Chapter 13 Windows and Frames
- Window Overview
- Simple Dialog Boxes
- The Status Line
- Timeouts and Intervals
- Error Handling
- The Navigator Object
- The Screen Object
- Window Control Methods
- The Location Object
- The History Object
- Multiple Windows and Frames
-
Chapter 14 The Document Object
- Document Overview
- Dynamically Generated Documents
- Document Color Properties
- Document Information Properties
- Forms
- Images
- Links
- Anchors
- Applets
- Embedded Data
-
Chapter 15 Forms and Form Elements
- The Form Object
- Defining Form Elements
- Scripting Form Elements
- Form Verification Example
-
Chapter 16 Scripting Cookies
- An Overview of Cookies
- Storing Cookies
- Reading Cookies
- Cookie Example
-
Chapter 17 The Document Object Model
- An Overview of the DOM
- Using the Core DOM API
- DOM Compatibility with Internet Explorer 4
- DOM Compatibility with Netscape 4
- Convenience Methods: The Traversal and Range APIs
-
Chapter 18 Cascading Style Sheets and Dynamic HTML
- Styles and Style Sheets with CSS
- Element Positioning with CSS
- Scripting Styles
- DHTML in Fourth-Generation Browsers
- Other DOM APIs for Styles and Style Sheets
-
Chapter 19 Events and Event Handling
- Basic Event Handling
- Advanced Event Handling with DOM Level 2
- The Internet Explorer Event Model
- The Netscape 4 Event Model
-
Chapter 20 Compatibility Techniques
- Platform and Browser Compatibility
- Language Version Compatibility
- Compatibility with Non-JavaScript Browsers
-
Chapter 21 JavaScript Security
- JavaScript and Security
- Restricted Features
- The Same-Origin Policy
- Security Zones and Signed Scripts
-
Chapter 22 Using Java with JavaScript
- Scripting Java Applets
- Using JavaScript from Java
- Using Java Classes Directly
- LiveConnect Data Types
- LiveConnect Data Conversion
- JavaScript Conversion of JavaObjects
- Java-to-JavaScript Data Conversion
-
-
Core JavaScript Reference
-
Chapter 23 Core JavaScript Reference
-
-
Client-Side JavaScript Reference
-
Chapter 24 Client-Side JavaScript Reference
-
-
W3C DOM Reference
-
Chapter 25 W3C DOM Reference
-
-
Class, Property, Method, and Event Handler Index
-
Chapter 26 Class, Property, Method, and Event Handler Index
- A
- B
- C
- D
- E
- F
- G
- H
- I
- J
- K
- L
- M
- N
- O
- P
- Q
- R
- S
- T
- U
- V
- W
- X
- Y
- Z
-
-
Colophon
- Title:
- JavaScript: The Definitive Guide, Fourth Edition
- By:
- David Flanagan
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- November 2001
- Pages:
- 936
- Print ISBN:
- 978-0-596-00048-6
- | ISBN 10:
- 0-596-00048-0
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of JavaScript: The Definitive Guide is a Javan rhinoceros. All five species of rhinoceros are distinguished by their large size, thick, armor-like skin, three-toed feet, and single or double snout horn. The Javan rhinoceros, along with the Sumatran rhinoceros, is one of two forest-dwelling species. The Javan rhinoceros is similar in appearance to the Indian rhinoceros, but smaller and with certain distinguishing characteristics, primarily skin texture. Rhinoceroses are often depicted standing up to their snouts in water or mud. In fact, they can frequently be found just like that. When not resting in a river, rhinos will dig deep pits in which to wallow. Both of these resting places provide a couple of advantages. First, they give the animal relief from the tropical heat and protection from blood-sucking flies. (The mud that the wallow leaves on the skin of the rhinoceros provides some protection from flies, also.) Second, mud wallows and river water help support the considerable weight of these huge animals, thereby relieving the strain on their legs and back. Folklore has long held that the horn of the rhinoceros possesses magical and aphrodisiacal powers, and that humans who gain possession of the horns will gain those powers, also. This is one of the reasons why rhinoceroses are a prime target of poachers. All species of rhinoceros are in danger, and the Javan rhino is the most precarious. There are fewer than 100 of these animals still living. At one time Javan rhinoceroses could be found throughout southeastern Asia, but they are now believed to exist only in Indonesia and Vietnam. Edie Freedman designed the cover of this book, using a 19th-century engraving from the Dover Pictorial Archive. The cover layout was produced by Kathleen Wilson with Quark XPress 3.3 using the ITC Garamond font. Whenever possible, our books use RepKoverTM, a durable and flexible lay-flat binding. If the page count exceeds RepKover's limit, perfect binding isused. The inside layout was designed by Nancy Priest and Mary Jane Walsh. Text was prepared in SGML using the DocBook 2.1 DTD. The print version of this book was created by translating the SGML source into a set of gtroff macros using a filter developed at ORA by Norman Walsh. Steve Talbott designed and wrote the underlying macro set on the basis of the GNU troff -gs macros; Lenny Muellner adapted them to SGML and implemented the book design. The GNU groff text formatter version 1.09 was used to generate PostScript output. The text and heading fonts are ITC Garamond Light and Garamond Book; the constant-width font used in this book is Letter Gothic. The illustrations that appear in the book were created in Macromedia Freehand 5.0 by Chris Reilley.
