Title:
Javascript : the complete reference
Personal Author:
Edition:
2nd ed.
Publication Information:
New York : McGraw-Hill, 2004
ISBN:
9780072253573
Subject Term:
Added Author:
Available:*
Library | Item Barcode | Call Number | Material Type | Item Category 1 | Status |
---|---|---|---|---|---|
Searching... | 30000010077541 | QA76.73.J39 P69 2004 | Open Access Book | Book | Searching... |
Searching... | 30000010050982 | QA76.73.J39 P69 2004 | Unknown | 1:CHECKING | Searching... |
On Order
Summary
Summary
The most up-to-date and complete JavaScript book on the market reflects the latest changes in the JavaScript language. The Complete Reference is accessible to JavaScript developers of all levels
Author Notes
Fritz Schneider is a software engineer at Google where he works on both client- and server-side Web applications.
Table of Contents
Acknowledgments | p. xxv |
Part I Introduction | |
1 Introduction to JavaScript | p. 3 |
First Look at JavaScript | p. 3 |
Adding JavaScript to XHTML Documents | p. 6 |
History and Use of JavaScript | p. 19 |
Summary | p. 22 |
2 JavaScript Core Features--Overview | p. 23 |
Basic Definitions | p. 23 |
Language Characteristics | p. 24 |
Variables | p. 28 |
Basic Data Types | p. 29 |
Composite Types | p. 31 |
Flow Control Statements | p. 36 |
Loops | p. 37 |
Functions | p. 39 |
Input and Output in JavaScript | p. 40 |
Regular Expressions | p. 42 |
Comments | p. 43 |
Summary | p. 44 |
Part II Core Language | |
3 Data Types and Variables | p. 47 |
Key Concepts | p. 47 |
JavaScript's Primitive Types | p. 49 |
Composite Types | p. 60 |
Type Conversion | p. 64 |
Variables | p. 67 |
Summary | p. 74 |
4 Operators, Expressions, and Statements | p. 75 |
Statement Basics | p. 75 |
Operators | p. 78 |
Core JavaScript Statements | p. 97 |
Summary | p. 110 |
5 Functions | p. 111 |
Function Basics | p. 111 |
Global and Local Variables | p. 117 |
Functions as Objects | p. 121 |
Recursive Functions | p. 127 |
Using Functions | p. 128 |
Summary | p. 132 |
6 Objects | p. 133 |
Objects in JavaScript | p. 133 |
Object Fundamentals | p. 135 |
Generic and User-Defined Objects | p. 147 |
Object-Oriented JavaScript | p. 150 |
JavaScript's Object-Oriented Reality | p. 157 |
Summary | p. 157 |
7 Array, Date, Math, and Type-Related Objects | p. 159 |
Array | p. 159 |
Boolean | p. 173 |
Date | p. 174 |
Global | p. 178 |
Math | p. 180 |
Number | p. 183 |
String | p. 183 |
Object Types and Primitive Types | p. 188 |
Summary | p. 188 |
8 Regular Expressions | p. 191 |
The Need for Regular Expressions | p. 191 |
The Concept of Regular Expressions | p. 192 |
Introduction to JavaScript Regular Expressions | p. 193 |
RegExp Object | p. 203 |
String Methods for Regular Expressions | p. 211 |
Advanced Regular Expressions | p. 214 |
Limitations of Regular Expressions | p. 217 |
Summary | p. 218 |
Part III Fundamental Client-Side JavaScript | |
9 JavaScript Object Models | p. 221 |
Object Model Overview | p. 221 |
The Initial JavaScript Object Model | p. 223 |
The Document Object | p. 225 |
Putting It All Together | p. 233 |
The Object Models | p. 236 |
The Nightmare of Cross-Browser Object Support | p. 247 |
Summary | p. 247 |
10 The Standard Document Object Model | p. 249 |
DOM Flavors | p. 249 |
Document Trees | p. 252 |
Accessing Elements | p. 255 |
Creating Nodes | p. 264 |
Inserting and Appending Nodes | p. 265 |
Deleting and Replacing Nodes | p. 268 |
Manipulating Attributes | p. 271 |
The DOM and HTML Elements | p. 272 |
The DOM and CSS | p. 276 |
DOM Traversal API | p. 287 |
DOM Range Selections | p. 289 |
Coming Soon to the DOM | p. 290 |
The DOM Versus DHTML Object Models | p. 291 |
Summary | p. 295 |
11 Event Handling | p. 297 |
Overview of Events and Event Handling | p. 297 |
The Basic Event Model | p. 299 |
Overview of Modern Event Models | p. 315 |
Netscape 4 Event Model | p. 316 |
Internet Explorer 4+ Event Model | p. 322 |
DOM2 Event Model | p. 330 |
Event Model Issues | p. 343 |
Summary | p. 344 |
Part IV Using JavaScript | |
12 Controlling Windows and Frames | p. 347 |
Introduction to Window | p. 347 |
Dialogs | p. 347 |
Opening and Closing Generic Windows | p. 351 |
Inter-Window Communication Details | p. 361 |
Controlling Windows | p. 362 |
Window Events | p. 370 |
Frames: A Special Case of Windows | p. 371 |
Window Extensions | p. 381 |
Summary | p. 384 |
13 Handling Documents | p. 385 |
Historic Document Object Properties | p. 385 |
Basic Document Methods | p. 389 |
Traditional HTML Element Access with Document | p. 391 |
Document Object Model Redux | p. 398 |
DOM Table Manipulation | p. 405 |
DOM Applied | p. 414 |
Summary | p. 415 |
14 Form Handling | p. 417 |
The Need for JavaScript Form Checking | p. 417 |
Form Basics | p. 417 |
Form Fields | p. 421 |
Form Validation | p. 444 |
Form Usability and JavaScript | p. 455 |
Dynamic Forms | p. 458 |
Summary | p. 461 |
15 Dynamic Effects: Rollovers, Positioning, and Animation | p. 463 |
Images | p. 463 |
Rollover Buttons | p. 467 |
Traditional Browser-Specific DHTML | p. 476 |
Standards-Based DHTML | p. 489 |
Applied DHTML | p. 496 |
Practical DHTML | p. 504 |
Summary | p. 504 |
16 Navigation and Site Visit Improvements | p. 505 |
Implementation Issues | p. 505 |
Pull-Down Menus | p. 506 |
DHTML Menus | p. 510 |
Navigation Assistance with Cookies | p. 522 |
Internet Explorer State Extensions | p. 532 |
Work Smarter, Not Harder | p. 533 |
Summary | p. 533 |
17 Browser and Capabilities Detection | p. 535 |
Browser Detection Basics | p. 535 |
Browser Detection Basics: The Navigator Object | p. 536 |
What to Detect | p. 539 |
Advanced Detection Techniques | p. 549 |
Browser Detection in Practice | p. 551 |
Browser Control | p. 551 |
Summary | p. 554 |
Part V Advanced Topics | |
18 JavaScript and Embedded Objects | p. 557 |
Java | p. 558 |
Plug-ins | p. 564 |
ActiveX | p. 574 |
Summary | p. 578 |
19 Remote JavaScript | p. 581 |
The Basic Idea of Remote JavaScript | p. 581 |
One-Way Communication | p. 582 |
Two-Way Communication | p. 585 |
Problems with Innerbrowsing | p. 600 |
Summary | p. 601 |
20 JavaScript and XML | p. 603 |
Overview of XML | p. 603 |
The DOM and XML | p. 620 |
Scripting Internet Explorer XML Data Islands | p. 630 |
Remote XML | p. 632 |
Summary | p. 637 |
Part VI Real World JavaScript | |
21 Browser-Specific Extensions and Considerations | p. 641 |
Internet Explorer | p. 641 |
Netscape Browser | p. 672 |
Mozilla-Based Browsers | p. 673 |
Summary | p. 677 |
22 JavaScript Security | p. 679 |
JavaScript Security Models | p. 679 |
Configurable Security Policies | p. 685 |
Browser Security Problems with JavaScript | p. 690 |
Cross-Site Scripting | p. 692 |
Summary | p. 694 |
23 JavaScript Programming Practices | p. 695 |
Errors | p. 695 |
Debugging | p. 698 |
Defensive Programming | p. 709 |
Coding Style | p. 723 |
Speeding Up Your Code | p. 724 |
Protecting Your Code | p. 724 |
Summary | p. 726 |
Part VII Appendixes | |
A Core Syntax Quick Reference | p. 729 |
Language Fundamentals | p. 729 |
Data Types | p. 732 |
Operators | p. 739 |
Flow Control Constructs | p. 744 |
Exceptions | p. 748 |
Regular Expressions | p. 748 |
B JavaScript Object Reference | p. 753 |
Object Models | p. 753 |
JavaScript Object Reference | p. 760 |
C JavaScript Reserved Words | p. 915 |
Index | p. 919 |