JavaScript Guide - Contents
Introduction
What you should already know
How to use this book
Document conventions
Part 1 - Using JavaScript in Navigator
Chapter 1 Getting started
What is JavaScript?
JavaScript in Navigator
JavaScript in LiveWire
JavaScript, the language
JavaScript and Java
Embedding JavaScript in HTML
Script hiding
Example: a first script
Defining and calling functions
Using the write method
Printing output
Displaying output
Scripting event handlers
Using quotation marks
Example: using an event handler
Validating form input
Example validation functions
Using the validation functions
Chapter 2 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 and history objects
Chapter 3 Using windows and frames
Opening and closing windows
Opening a window
Closing a window
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 a window's properties, methods, and event handlers
Referring to a window in a form submit or hypertext link
Navigating among windows and frames
Chapter 4 More fun with scripts
Creating arrays
Defining an array
Populating an array
Using cookies
Limitations
Using cookies with JavaScript
Using cookies: an example
Using JavaScript URLs
Using client-side image maps
Using standard image maps
Using the status bar
Creating hints with onMouseOver
Using the Date object: an example
Part 2 - The JavaScript language
Chapter 5 Values, variables, and literals
Values
Data type conversion
Variables
Variable scope
Literals
Integers
Floating-point literals
Boolean literals
String literals
Chapter 6 Expressions and operators
Expressions
Conditional expressions
Assignment operators
Comparison operators
Operators
Arithmetic operators
Bitwise operators
Logical operators
String operators
Operator precedence
Chapter 7 Object model
Objects and properties
Functions
Defining functions
Using functions
Using the arguments array
Creating new objects
Defining methods
Using this for object references
Chapter 8 Built-in objects and functions
string object
Math object
Date object
Built-in functions
The eval function
The parseInt and parseFloat functions
Chapter 9 Overview of JavaScript statements
Conditional statement
Loop statements
for statement
while statement
break statement
continue statement
Object manipulation statements and
for...in statement
new operator
this operator
with statement
Comments
Part 3 - Reference
Chapter 10 Statements
break
comment
continue
for
for...in
function
if...else
new
return
this
var
while
with
Chapter 11 Navigator JavaScript Reference
abs
acos
action
alert
alinkColor
anchor method
anchor object
anchors
appCodeName
appName
appVersion
arguments array
arguments property
asin
atan
back
bgColor
big
blink
blur
bold
button
ceil
charAt
checkbox
checked
clear
clearTimeout
click
close (document object)
close (window object)
confirm
cookie
cos
Date
defaultChecked
defaultSelected
defaultStatus
defaultValue
document
E
elements array
elements property
encoding
escape
eval
exp
fgColor
fixed
floor
focus
fontcolor
fontsize
form
forms
forward
frame
frames
getDate
getDay
getHours
getMinutes
getMonth
getSeconds
getTime
getTimezoneOffset
getYear
go
hash
hidden
history
host
hostname
href
index
indexOf
isNaN
italics
lastIndexOf
lastModified
length
link method
link object
linkColor
links
LN2
LN10
location object
log
LOG2E
LOG10E
Math
max
method
min
name
navigator
onBlur
onChange
onClick
onFocus
onLoad
onMouseOver
onSelect
onSubmit
onUnload
open (document object)
open (window object)
options
parent
parse
parseFloat
parseInt
password
pathname
PI
port
pow
prompt
protocol
radio
random
referrer
reset
round
search
select method
select object
selected
selectedIndex
self
setDate
setHours
setMinutes
setMonth
setSeconds
setTime
setTimeout
setYear
sin
small
sqrt
SQRT1_2
SQRT2
status
strike
string
sub
submit method
submit object
substring
sup
tan
target
text object
text property
textarea
title
toGMTString
toLocaleString
toLowerCase
top
toUpperCase
unescape
URL property
userAgent
UTC
value
vlinkColor
window object
window property
write
writeln
Appendix A Reserved words
Appendix B Color values
Appendix C Netscape cookies
Index