Cover image for Javascript : the complete reference
Title:
Javascript : the complete reference
Personal Author:
Edition:
2nd ed.
Publication Information:
New York : McGraw-Hill, 2004
ISBN:
9780072253573
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

Acknowledgmentsp. xxv
Part I Introduction
1 Introduction to JavaScriptp. 3
First Look at JavaScriptp. 3
Adding JavaScript to XHTML Documentsp. 6
History and Use of JavaScriptp. 19
Summaryp. 22
2 JavaScript Core Features--Overviewp. 23
Basic Definitionsp. 23
Language Characteristicsp. 24
Variablesp. 28
Basic Data Typesp. 29
Composite Typesp. 31
Flow Control Statementsp. 36
Loopsp. 37
Functionsp. 39
Input and Output in JavaScriptp. 40
Regular Expressionsp. 42
Commentsp. 43
Summaryp. 44
Part II Core Language
3 Data Types and Variablesp. 47
Key Conceptsp. 47
JavaScript's Primitive Typesp. 49
Composite Typesp. 60
Type Conversionp. 64
Variablesp. 67
Summaryp. 74
4 Operators, Expressions, and Statementsp. 75
Statement Basicsp. 75
Operatorsp. 78
Core JavaScript Statementsp. 97
Summaryp. 110
5 Functionsp. 111
Function Basicsp. 111
Global and Local Variablesp. 117
Functions as Objectsp. 121
Recursive Functionsp. 127
Using Functionsp. 128
Summaryp. 132
6 Objectsp. 133
Objects in JavaScriptp. 133
Object Fundamentalsp. 135
Generic and User-Defined Objectsp. 147
Object-Oriented JavaScriptp. 150
JavaScript's Object-Oriented Realityp. 157
Summaryp. 157
7 Array, Date, Math, and Type-Related Objectsp. 159
Arrayp. 159
Booleanp. 173
Datep. 174
Globalp. 178
Mathp. 180
Numberp. 183
Stringp. 183
Object Types and Primitive Typesp. 188
Summaryp. 188
8 Regular Expressionsp. 191
The Need for Regular Expressionsp. 191
The Concept of Regular Expressionsp. 192
Introduction to JavaScript Regular Expressionsp. 193
RegExp Objectp. 203
String Methods for Regular Expressionsp. 211
Advanced Regular Expressionsp. 214
Limitations of Regular Expressionsp. 217
Summaryp. 218
Part III Fundamental Client-Side JavaScript
9 JavaScript Object Modelsp. 221
Object Model Overviewp. 221
The Initial JavaScript Object Modelp. 223
The Document Objectp. 225
Putting It All Togetherp. 233
The Object Modelsp. 236
The Nightmare of Cross-Browser Object Supportp. 247
Summaryp. 247
10 The Standard Document Object Modelp. 249
DOM Flavorsp. 249
Document Treesp. 252
Accessing Elementsp. 255
Creating Nodesp. 264
Inserting and Appending Nodesp. 265
Deleting and Replacing Nodesp. 268
Manipulating Attributesp. 271
The DOM and HTML Elementsp. 272
The DOM and CSSp. 276
DOM Traversal APIp. 287
DOM Range Selectionsp. 289
Coming Soon to the DOMp. 290
The DOM Versus DHTML Object Modelsp. 291
Summaryp. 295
11 Event Handlingp. 297
Overview of Events and Event Handlingp. 297
The Basic Event Modelp. 299
Overview of Modern Event Modelsp. 315
Netscape 4 Event Modelp. 316
Internet Explorer 4+ Event Modelp. 322
DOM2 Event Modelp. 330
Event Model Issuesp. 343
Summaryp. 344
Part IV Using JavaScript
12 Controlling Windows and Framesp. 347
Introduction to Windowp. 347
Dialogsp. 347
Opening and Closing Generic Windowsp. 351
Inter-Window Communication Detailsp. 361
Controlling Windowsp. 362
Window Eventsp. 370
Frames: A Special Case of Windowsp. 371
Window Extensionsp. 381
Summaryp. 384
13 Handling Documentsp. 385
Historic Document Object Propertiesp. 385
Basic Document Methodsp. 389
Traditional HTML Element Access with Documentp. 391
Document Object Model Reduxp. 398
DOM Table Manipulationp. 405
DOM Appliedp. 414
Summaryp. 415
14 Form Handlingp. 417
The Need for JavaScript Form Checkingp. 417
Form Basicsp. 417
Form Fieldsp. 421
Form Validationp. 444
Form Usability and JavaScriptp. 455
Dynamic Formsp. 458
Summaryp. 461
15 Dynamic Effects: Rollovers, Positioning, and Animationp. 463
Imagesp. 463
Rollover Buttonsp. 467
Traditional Browser-Specific DHTMLp. 476
Standards-Based DHTMLp. 489
Applied DHTMLp. 496
Practical DHTMLp. 504
Summaryp. 504
16 Navigation and Site Visit Improvementsp. 505
Implementation Issuesp. 505
Pull-Down Menusp. 506
DHTML Menusp. 510
Navigation Assistance with Cookiesp. 522
Internet Explorer State Extensionsp. 532
Work Smarter, Not Harderp. 533
Summaryp. 533
17 Browser and Capabilities Detectionp. 535
Browser Detection Basicsp. 535
Browser Detection Basics: The Navigator Objectp. 536
What to Detectp. 539
Advanced Detection Techniquesp. 549
Browser Detection in Practicep. 551
Browser Controlp. 551
Summaryp. 554
Part V Advanced Topics
18 JavaScript and Embedded Objectsp. 557
Javap. 558
Plug-insp. 564
ActiveXp. 574
Summaryp. 578
19 Remote JavaScriptp. 581
The Basic Idea of Remote JavaScriptp. 581
One-Way Communicationp. 582
Two-Way Communicationp. 585
Problems with Innerbrowsingp. 600
Summaryp. 601
20 JavaScript and XMLp. 603
Overview of XMLp. 603
The DOM and XMLp. 620
Scripting Internet Explorer XML Data Islandsp. 630
Remote XMLp. 632
Summaryp. 637
Part VI Real World JavaScript
21 Browser-Specific Extensions and Considerationsp. 641
Internet Explorerp. 641
Netscape Browserp. 672
Mozilla-Based Browsersp. 673
Summaryp. 677
22 JavaScript Securityp. 679
JavaScript Security Modelsp. 679
Configurable Security Policiesp. 685
Browser Security Problems with JavaScriptp. 690
Cross-Site Scriptingp. 692
Summaryp. 694
23 JavaScript Programming Practicesp. 695
Errorsp. 695
Debuggingp. 698
Defensive Programmingp. 709
Coding Stylep. 723
Speeding Up Your Codep. 724
Protecting Your Codep. 724
Summaryp. 726
Part VII Appendixes
A Core Syntax Quick Referencep. 729
Language Fundamentalsp. 729
Data Typesp. 732
Operatorsp. 739
Flow Control Constructsp. 744
Exceptionsp. 748
Regular Expressionsp. 748
B JavaScript Object Referencep. 753
Object Modelsp. 753
JavaScript Object Referencep. 760
C JavaScript Reserved Wordsp. 915
Indexp. 919