Client-Side JavaScript Guide
Contents
New Features in this Release
About this Book
- New Features in this Release
- What You Should Already Know
- JavaScript Versions
- Where to Find JavaScript Information
- Document Conventions
Chapter 1 JavaScript Overview
- What Is JavaScript?
- Core, Client-Side, and Server-Side JavaScript
- JavaScript and Java
- Debugging JavaScript
- Visual JavaScript
- JavaScript and the ECMA Specification
Part 1 Core Language Features
Chapter 2 Values, Variables, and Literals
Chapter 3 Expressions and Operators
Chapter 4 Regular Expressions
- Creating a Regular Expression
- Writing a Regular Expression Pattern
- Working with Regular Expressions
- Examples
Chapter 5 Statements
- Conditional Statements
- Loop Statements
- for Statement
- do...while Statement
- while Statement
- label Statement
- break Statement
- continue Statement
- Object Manipulation Statements
- Comments
Chapter 6 Functions
Chapter 7 Working with Objects
- Objects and Properties
- Creating New Objects
- Using Object Initializers
- Using a Constructor Function
- Indexing Object Properties
- Defining Properties for an Object Type
- Defining Methods
- Using this for Object References
- Deleting Objects
- Predefined Core Objects
Chapter 8 Details of the Object Model
- Class-Based vs. Prototype-Based Languages
- The Employee Example
- Creating the Hierarchy
- Object Properties
- More Flexible Constructors
- Property Inheritance Revisited
Part 2 Client-Specific Features
Chapter 9 Embedding JavaScript in HTML
- Using the SCRIPT Tag
- Specifying a File of JavaScript Code
- Using JavaScript Expressions as HTML Attribute Values
- Using Quotation Marks
- Specifying Alternate Content with the NOSCRIPT Tag
Chapter 10 Handling Events
Chapter 11 Using Navigator Objects
- Navigator Object Hierarchy
- Document Properties: an Example
- JavaScript Reflection and HTML Layout
- Key Navigator Objects
- window and Frame Objects
- document Object
- Form Object
- location Object
- history Object
- navigator Object
- Navigator Object Arrays
- Using the write Method
Chapter 12 Using Windows and Frames
- Opening and Closing Windows
- Using Frames
- Creating a Frame
- Updating a Frame
- Referring To and Navigating Among Frames
- Creating and Updating Frames: an Example
- Referring to Windows and Frames
- Referring to Properties, Methods, and Event Handlers
- Referring to a Window in a Form Submit or Hypertext Link
- Navigating Among Windows and Frames
Chapter 13 Additional Topics
- Using JavaScript URLs
- Using Client-Side Image Maps
- Using Server-Side Image Maps
- Using the Status Bar
- Using Cookies
- Determining Installed Plug-ins
Chapter 14 JavaScript Security
- Same Origin Policy
- Origin Checks and document.domain
- Origin Checks of Named Forms
- Origin Checks and SCRIPT Tags that Load Documents
- Origin Checks and Layers
- Origin Checks and Java Applets
- Using Signed Scripts
- Introduction to Signed Scripts
- Identifying Signed Scripts
- Using Expanded Privileges
- Writing the Script
- Signing Scripts
- Troubleshooting Signed Scripts
- Using Data Tainting
Part 3 Working with LiveConnect
Chapter 15 LiveConnect Overview
- What Is LiveConnect?
- Enabling LiveConnect
- The Java Console
- Working with Wrappers
- JavaScript to Java Communication
- The Packages Object
- Working with Java Arrays
- Package and Class References
- Arguments of Type char
- Controlling Java Applets
- Controlling Java Plug-ins
- Java to JavaScript Communication
- Data Type Conversions
Chapter 16 LiveAudio and LiveConnect
Part 4 Appendixes
Appendix A Mail Filters
- Creating the Filter and Adding to Your Rules File
- News Filters
- Message Object Reference
- Debugging Your Filters
- A More Complex Example
Appendix B Displaying Errors with the JavaScript Console
- Opening the JavaScript Console
- Evaluating Expressions with the Console
- Displaying Error Messages with the Console
Glossary
Index
Next | Index
Last Updated: 05/27/99 21:21:12
