Front cover image for JavaScript bible

JavaScript bible

A guide for power users demonstrates the basics of JavaScript while exploring control strutures, functions, operators, form elements, hypertext links, Java Applets, and Dynamic HTML applications
Print Book, English, ©1998
IDG Books Worldwide, Foster City, CA, ©1998
xxxv, 1015 pages : illustrations ; 24 cm + 1 computer optical disc (4 3/4 in.)
9780764531880, 0764531883
38888873
Getting Started with JavaScript
JavaScript's Role in the World Wide Web
Authoring Challenges amid the Browser Wars
Your First JavaScript Script
JavaScript Tutorial
Browser and Document Objects
Scripts and HTML Documents
Programming Fundamentals, Part I
Programming Fundamentals, Part II
Window and Document Objects
Forms and Form Elements
Strings, Math, and Dates
Scripting Frames and Multiple Windows
Images and Dynamic HTML
JavaScript Object and Language Reference
JavaScript Essentials
The Window Object
Location and History Objects
The Document Object
Link and Anchor Objects
Image and Area Objects
The Layer Object
The Applet Object
The Form Object
Text-Related Objects
Button Objects
Select and FileUpload Objects
Navigator and Other Environment Objects
The String Object
Math, Number, and Boolean Objects
The Date Object
The Array Object
Regular Expression and RegExp Objects
Control Structures
JavaScript Operators
The Event Object
Getting Started with JavaScript
JavaScript's Role in the World Wide Web
Competition on the Web
Stretching the Standards
CGI Scripting
Of Helpers, Plug-ins, and Applets
JavaScript: A Language for All
JavaScript: The Right Tool for the Right Job
Authoring Challenges amid the Browser Wars
Leapfrog
Ducking for Cover
Compatibility Issues Today
Developing a Scripting Strategy
Your First JavaScript Script
The Software Tools
What Your First Script Will Do
Entering Your First Script
Examining the Script
Have Some Fun
JavaScript Tutorial
Browser and Document Objects
Scripts Run the Show
JavaScript in Action
The Document Object Model
Containment Hierarchy
When a Document Loads
Object References
About the Dot Syntax
What Defines an Object?
Exercises
Scripts and HTML Documents
Where Scripts Go in Documents
JavaScript Statements
When Script Statements Execute
Scripting versus Programming
Exercises
Programming Fundamentals, Part I
Working with Information
Variables
Expressions and Evaluation
Data Type Conversions
Operators
Exercises
Programming Fundamentals, Part II
Decisions and Loops
Control Structures
About Repeat Loops
Functions
About Curly Braces
Arrays
Exercises
Window and Document Objects
Document Objects
The Window Object
Window Properties and Methods
The Location Object
The History Object
The Document Object
The Link Object
Exercises
Forms and Form Elements
The Form Object
Text Objects
The Button Object
The Checkbox Object
The Radio Object
The Select Object
Passing Form Data and Elements to Functions
Submitting Forms
Exercises
Strings, Math, and Dates
Core Language Objects
String Objects
The Math Object
The Date Object
Date Calculations
Exercises
Scripting Frames and Multiple Windows
Frames: Parents and Children
References among Family Members
Frame Scripting Tips
Controlling Multiple Frames
Navigation Bars
More about Window References
Exercises
Images and Dynamic HTML
The Image Object
More Dynamism in HTML
Exercises
JavaScript Object and Language Reference
JavaScript Essentials
Language and Document Objects
The Object Hierarchy
Creating JavaScript Objects
Object Properties
Object Methods
Object Event Handlers
Embedding Scripts in Documents
Browser Version Detection
Designing for Compatibility
Object Definitions in This Book
The Window Object
Window Terminology
Frames
Window Object
Frame Object
Location and History Objects
Location Object
History Object
The Document Object
Dynamic HTML and Documents
Document Object
Link and Anchor Objects
Link Object
Anchor Object
Image and Area Objects
Image Object
Area Object
The Layer Object
Netscape Layers
Layer Object
The Applet Object
No Java Required
Applet Object
The Form Object
The Form in the Object Hierarchy
Form Object
Text-Related Objects
Text Object
Password Object
Textarea Object
Hidden Object
Button Objects
The Button Object, Submit Object, and Reset Object
Checkbox Object
Radio Object
Select and FileUpload Objects
Select Object
FileUpload Object
Navigator and Other Environment Objects
Navigator Object
MimeType Object
Syntax
About this object
Plugin Object
Looking for MIME and Plug-ins
Screen Object
The String Object
String and Number Data Types
String Object
URL String Encoding and Decoding
Math, Number, and Boolean Objects
Numbers in JavaScript
Math Object
Number Object
Boolean Object
The Date Object
Time Zones and GMT
The Date Object
Validating Date Entries in Forms
The Array Object
Structured Data
Creating an Empty Array
Populating an Array
JavaScript 1.2 Array Creation Enhancements
Deleting Arrays and Array Entries
Simulating Two-Dimensional Arrays
Array Object Properties
Array Object Methods
Regular Expression and RegExp Objects
Regular Expressions and Patterns
Language Basics
Object Relationships
Using Regular Expressions
Regular Expression Object
RegExp Object
Control Structures
If and If ... Else Decisions
Conditional Expressions
Repeat (for) Loops
The while Loop
The do-while Loop
Looping through Properties
The with Statement
Labeled Statements
The switch Statement
JavaScript Operators
Operator Categories
Comparison Operators
Equality of Disparate Data Types
Connubial Operators
Assignment Operators
Boolean Operators
Bitwise Operators
The typeof Operator
The void Operator
The new Operator
The delete Operator
The this Operator
Operator Precedence
The Event Object
Why Events?
New Navigator
New Events
Event Object
Functions and Custom Objects
Function Object
Function Application Notes
Invoking Functions
Variable Scope: Globals and Locals
Custom Objects
JavaScript Components
Global Functions and Statements
Functions
Statements
Server-side JavaScript
Adding Server Processing to Documents
Essential Server-side Objects
Database Access with LiveWire
Server or Client JavaScript?
Putting JavaScript to Work
Data-Entry Validation
Real-time versus Batch Validation
Designing Filters
Building a Library of Filter Functions
Combining Validation Functions
Date and Time Validation
An "Industrial-Strength" Validation Solution
Plan for Data Validation
LiveConnect: Scripting Java Applets and Plug-ins
LiveConnect Overview
Why Control Java Applets?
A Little Java
Scripting Applets in Real Life
Applet-to-Script Communication
Scripting Navigator Plug-ins
Scripting Java Classes Directly
Advanced Event Handling
The "Other" Event Object
Capturing Events
Dueling Event Models
Security and Signed Scripts
Battening Down the Hatches
When Worlds Collide
The Java Sandbox
Security Policies
The Same Origin Policy
The Signed Script Policy
The Digital Certificate
Signing Scripts
Accessing Protected Properties and Methods
Blending Privileges into Scripts
Examples
Handling Java Class Errors
Signed Script Miscellany
Scripting Cross-Platform Dynamic HTML
What is DHTML?
Cross-Platform DHTML Challenges
Finding the Common Denominator
Working Around Incompatibilities
Handling Non-DHTML Browsers
A DHTML Application Example
Netscape Dynamic HTML and JavaScript Extensions
JavaScript Styles
Style Properties
Dynamic Positioning
Microsoft Dynamic HTML
Internet Explorer 4 Document Object Model
Style Object Properties
Dynamic Positioning
Internet Explorer 4 JScript and Object Model
Core Language
Document Object Model
Events
Scripting Engine Versions
Debugging Scripts
Syntax versus Runtime Errors
Error Message Alerts
Sniffing Out Problems
Using the JavaScript Debugger
Writing Your Own Trace Utility
Navigator Crashes
Preventing Problems
Testing Your Masterpiece
Authoring Tools
Acadia's Infuse 2.0
Netscape Visual JavaScript
Other Server-Side Tools
JavaScript Applications
Netscape Navigator Object Road Map and Compatibility Guide
JavaScript Reserved Words
Answers to Tutorial Exercises
Answers
Answers
Answers
Answers
Answers
Answers
Answers
Answers
Answers
JavaScript Internet Resources
Newsgroups
Listserv
Online Documentation
World Wide Web
Using the CD-ROM
System Requirements
Disc Contents
End-User License Agreement
CD-ROM Installation Instructions
Includes index