[Next] [Index]

JavaScript Reference

This book is a reference manual for the JavaScript language, including objects in the core language and both client-side and server-side extensions. JavaScript is Netscape's cross-platform, object-based scripting language for client and server applications.

This book has been updated to include JavaScript 1.2 features, with the exception of JavaScript properties and objects that support layers and style sheets. For information on these subjects, see Dynamic HTML in Netscape Communicator.

Preliminary, last modified: 10/31/97.

Contents

What's in this Reference

This reference is organized around the functionality of the JavaScript language. Sometimes you already know the name of an object or method, but don't know precisely where to look for it. This chapter contains tables of links to aid in this situation.

Getting Started

This book is a reference manual for the JavaScript language, including objects in the core language and both client-side and server-side extensions. JavaScript is Netscape's cross-platform, object-based scripting language for client and server applications.
What You Should Already Know
Where to Find JavaScript Information
Document Conventions

Chapter 1  Introduction

This chapter briefly introduces JavaScript, Netscape's cross-platform, object-based scripting language for client and server applications.
Client-Side JavaScript
Server-Side JavaScript
JavaScript Objects
JavaScript Security

Chapter 2  Operators

JavaScript has assignment, comparison, arithmetic, bitwise, logical, string, and special operators. This chapter describes the operators and contains information about operator precedence.
Assignment Operators
Comparison Operators
Arithmetic Operators
% (Modulus)
++ (Increment)
-- (Decrement)
- (Unary Negation)
Bitwise Operators
Bitwise Logical Operators
Bitwise Shift Operators
Logical Operators
Short-Circuit Evaluation
String Operators
Special Operators
?: (Conditional operator)
, (Comma operator)
delete
new
this
typeof
void

Chapter 3  Statements

This chapter describes all JavaScript statements. JavaScript statements consist of keywords used with the appropriate syntax. A single statement may span multiple lines. Multiple statements may occur on a single line if each statement is separated by a semicolon.
break
comment
continue
delete
do...while
export
for
for...in
function
if...else
import
labeled
return
switch
var
while
with

Chapter 4  Core

This chapter includes the JavaScript core objects Array, Boolean, Date, Function, Math, Number, Object, and String. These objects are used in both client-side and server-side JavaScript.
Array
Properties
Methods
Boolean
Properties
Methods
Date
Properties
Methods
Function
Properties
Methods
Math
Properties
Methods
Number
Properties
Methods
Object
Properties
Methods
String
Properties
Methods
RegExp
Properties
Methods

Chapter 5  Document

This chapter deals with the document and its associated objects, document, Layer, Link, Anchor, Area, Image, and Applet.
document
Properties
Methods
Link
Properties
Methods
Area
Anchor
Image
Properties
Methods
Applet
Layer
Properties
Methods

Chapter 6  Window

This chapter deals with the Window object and the client-side objects associated with it: Frame, Location, and History.
Window
Properties
Methods
Frame
Location
Properties
Methods
History
Properties
Methods
screen
Properties

Chapter 7  Form

This chapter deals with the use of forms, which appear within a document to obtain input from the user.
Form
Properties
Methods
Hidden
Properties
Text
Properties
Methods
Textarea
Properties
Methods
Password
Properties
Methods
FileUpload
Properties
Methods
Button
Properties
Methods
Submit
Properties
Methods
Reset
Properties
Methods
Radio
Properties
Methods
Checkbox
Properties
Methods
Select
Properties
Methods
Option
Properties

Chapter 8  Browser

This chapter deals with the browser and elements associated with it.
navigator
Properties
Methods
MimeType
Properties
Plugin
Properties

Chapter 9  Events and Event Handlers

This chapter contains the event object and the event handlers that are used with client-side objects in JavaScript to evoke particular actions. In addition, it contains general information about using events and event handlers.
General Information about Events
Defining Event Handlers
Events in Navigator 4.0
event
onAbort
onBlur
onChange
onClick
onDblClick
onDragDrop
onError
onFocus
onKeyDown
onKeyPress
onKeyUp
onLoad
onMouseDown
onMouseMove
onMouseOut
onMouseOver
onMouseUp
onMove
onReset
onResize
onSelect
onSubmit
onUnload

Chapter 10  LiveWire Database Service

This chapter contains the server-side objects associated with LiveWire: database, DbPool, Connection, Cursor, Stproc, Resultset and blob.
database
Transactions
Properties
Methods
DbPool
Properties
Methods
Connection
Properties
Methods
Cursor
Properties
Methods
Stproc
Properties
Methods
Resultset
Properties
Methods
blob
Methods

Chapter 11  Session Management Service

This chapter contains those server-side objects associated with managing a session, including request, client, project, server, and Lock.
request
Properties
client
Properties
Methods
project
Properties
Methods
server
Properties
Methods
Lock
Methods

Chapter 12  Utilities

This chapter contains the server-side objects File and SendMail.
File
Properties
Methods
SendMail
Properties
Methods

Chapter 13  Global Functions

This chapter contains all JavaScript functions not associated with any object.
addClient
addResponseHeader
blob
callC
debug
deleteResponseHeader
escape
eval
flush
getOptionValue
getOptionValueCount
isNaN
Number
parseFloat
parseInt
redirect
registerCFunction
ssjs_generateClientID
ssjs_getCGIVariable
ssjs_getClientID
String
taint
unescape
untaint
write

Chapter 14  Java packages for LiveConnect

netscape.javascript.JSObject
Methods and static methods
netscape.javascript.JSException
Constructors
netscape.plugin.Plugin
Constructors and methods

Index


[Next] [Index]

Last Updated: 10/31/97 12:29:24


Copyright ?1997 Netscape Communications Corporation