×

Uh-oh, it looks like your Internet Explorer is out of date.

For a better shopping experience, please upgrade now.

JavaScript: The Complete Reference, 2nd edition / Edition 2
  • Alternative view 1 of JavaScript: The Complete Reference, 2nd edition / Edition 2
  • Alternative view 2 of JavaScript: The Complete Reference, 2nd edition / Edition 2
     

JavaScript: The Complete Reference, 2nd edition / Edition 2

by Thomas Powell, Fritz Schneider
 

ISBN-10: 0072253576

ISBN-13: 9780072253573

Pub. Date: 06/28/2004

Publisher: McGraw-Hill Professional Publishing

The Definitive JavaScript Resource. Complete coverage of the W3C DOM2 standard

Build dynamic, cross-browser Web pages using JavaScript--the premier client-side scripting language in use today on the Web. First learn the basics of the language, then combine syntax and theory to develop practical applications--create a variety of windows including special

Overview

The Definitive JavaScript Resource. Complete coverage of the W3C DOM2 standard

Build dynamic, cross-browser Web pages using JavaScript--the premier client-side scripting language in use today on the Web. First learn the basics of the language, then combine syntax and theory to develop practical applications--create a variety of windows including special dialogs, use the W3C Document Object Model (DOM) 2 to manipulate (X)HTML documents, add sizzle to your pages with special effects, and improve usability. With full coverage of advanced topics such as using embedded objects and remote JavaScript, this is the ultimate resource for beginning and advanced users alike.

  • Learn core language features such as data types, objects, and regular expressions
  • Manipulate (X)HTML and XML documents using the W3C DOM 2
  • Take advantage of the standard event models in DOM 2 for robust event handling
  • Control windows and frames with the Windows object
  • Validate forms before sending them to server-side programs
  • Add dynamic effects to Web pages, such as rollovers and animation
  • Extend JavaScript’s capabilities using embedded multimedia objects
  • Interact with servers on the Internet using remote JavaScript
  • Understand JavaScript security policies
  • Troubleshoot and debug your JavaScript programs

Thomas Powell, lecturer for UCSD, is the author of HTML& XHTML: The Complete Reference and Web Design: The Complete Reference. He is president and founder of PINT, a Web site design and development firm. Fritz Schneider is a software engineer at Google who where he works on both client- and server-side Web applications. He is an experienced teacher of Web technologies and co-author of How to Do Everything with Google.

Product Details

ISBN-13:
9780072253573
Publisher:
McGraw-Hill Professional Publishing
Publication date:
06/28/2004
Series:
Osborne Complete Reference Series
Edition description:
Second Edition
Pages:
976
Product dimensions:
7.40(w) x 9.00(h) x 1.84(d)

Table of Contents

Acknowledgmentsxxv
Part IIntroduction
1Introduction to JavaScript3
First Look at JavaScript3
Adding JavaScript to XHTML Documents6
History and Use of JavaScript19
Summary22
2JavaScript Core Features--Overview23
Basic Definitions23
Language Characteristics24
Variables28
Basic Data Types29
Composite Types31
Flow Control Statements36
Loops37
Functions39
Input and Output in JavaScript40
Regular Expressions42
Comments43
Summary44
Part IICore Language
3Data Types and Variables47
Key Concepts47
JavaScript's Primitive Types49
Composite Types60
Type Conversion64
Variables67
Summary74
4Operators, Expressions, and Statements75
Statement Basics75
Operators78
Core JavaScript Statements97
Summary110
5Functions111
Function Basics111
Global and Local Variables117
Functions as Objects121
Recursive Functions127
Using Functions128
Summary132
6Objects133
Objects in JavaScript133
Object Fundamentals135
Generic and User-Defined Objects147
Object-Oriented JavaScript150
JavaScript's Object-Oriented Reality157
Summary157
7Array, Date, Math, and Type-Related Objects159
Array159
Boolean173
Date174
Global178
Math180
Number183
String183
Object Types and Primitive Types188
Summary188
8Regular Expressions191
The Need for Regular Expressions191
The Concept of Regular Expressions192
Introduction to JavaScript Regular Expressions193
RegExp Object203
String Methods for Regular Expressions211
Advanced Regular Expressions214
Limitations of Regular Expressions217
Summary218
Part IIIFundamental Client-Side JavaScript
9JavaScript Object Models221
Object Model Overview221
The Initial JavaScript Object Model223
The Document Object225
Putting It All Together233
The Object Models236
The Nightmare of Cross-Browser Object Support247
Summary247
10The Standard Document Object Model249
DOM Flavors249
Document Trees252
Accessing Elements255
Creating Nodes264
Inserting and Appending Nodes265
Deleting and Replacing Nodes268
Manipulating Attributes271
The DOM and HTML Elements272
The DOM and CSS276
DOM Traversal API287
DOM Range Selections289
Coming Soon to the DOM290
The DOM Versus DHTML Object Models291
Summary295
11Event Handling297
Overview of Events and Event Handling297
The Basic Event Model299
Overview of Modern Event Models315
Netscape 4 Event Model316
Internet Explorer 4+ Event Model322
DOM2 Event Model330
Event Model Issues343
Summary344
Part IVUsing JavaScript
12Controlling Windows and Frames347
Introduction to Window347
Dialogs347
Opening and Closing Generic Windows351
Inter-Window Communication Details361
Controlling Windows362
Window Events370
Frames: A Special Case of Windows371
Window Extensions381
Summary384
13Handling Documents385
Historic Document Object Properties385
Basic Document Methods389
Traditional HTML Element Access with Document391
Document Object Model Redux398
DOM Table Manipulation405
DOM Applied414
Summary415
14Form Handling417
The Need for JavaScript Form Checking417
Form Basics417
Form Fields421
Form Validation444
Form Usability and JavaScript455
Dynamic Forms458
Summary461
15Dynamic Effects: Rollovers, Positioning, and Animation463
Images463
Rollover Buttons467
Traditional Browser-Specific DHTML476
Standards-Based DHTML489
Applied DHTML496
Practical DHTML504
Summary504
16Navigation and Site Visit Improvements505
Implementation Issues505
Pull-Down Menus506
DHTML Menus510
Navigation Assistance with Cookies522
Internet Explorer State Extensions532
Work Smarter, Not Harder533
Summary533
17Browser and Capabilities Detection535
Browser Detection Basics535
Browser Detection Basics: The Navigator Object536
What to Detect539
Advanced Detection Techniques549
Browser Detection in Practice551
Browser Control551
Summary554
Part VAdvanced Topics
18JavaScript and Embedded Objects557
Java558
Plug-ins564
ActiveX574
Summary578
19Remote JavaScript581
The Basic Idea of Remote JavaScript581
One-Way Communication582
Two-Way Communication585
Problems with Innerbrowsing600
Summary601
20JavaScript and XML603
Overview of XML603
The DOM and XML620
Scripting Internet Explorer XML Data Islands630
Remote XML632
Summary637
Part VIReal World JavaScript
21Browser-Specific Extensions and Considerations641
Internet Explorer641
Netscape Browser672
Mozilla-Based Browsers673
Summary677
22JavaScript Security679
JavaScript Security Models679
Configurable Security Policies685
Browser Security Problems with JavaScript690
Cross-Site Scripting692
Summary694
23JavaScript Programming Practices695
Errors695
Debugging698
Defensive Programming709
Coding Style723
Speeding Up Your Code724
Protecting Your Code724
Summary726
Part VIIAppendixes
ACore Syntax Quick Reference729
Language Fundamentals729
Data Types732
Operators739
Flow Control Constructs744
Exceptions748
Regular Expressions748
BJavaScript Object Reference753
Object Models753
JavaScript Object Reference760
CJavaScript Reserved Words915
Index919

Customer Reviews

Average Review:

Post to your social network

     

Most Helpful Customer Reviews

See all customer reviews