[Previous] [Contents]

Index

Note: This index has not yet been updated.

Symbols

! operator 147
& operator 145
&& operator 147
*/ comment 209
/* comment 209
// comment 29, 209
^ operator 145
| operator 145
|| operator 147
~ operator 145

A

A HTML tag 74
accumulator
See tainting
alert method 47, 59
Anchor object
See also anchors
anchors property
See anchors array
applets
controlling with LiveConnect 81
example of 82, 83
flashing text example 83
Hello World example 82, 88
referencing 81
Area object
See Link object
arguments array 170
Array object
creating 180
overview 179
arrays
See also the individual arrays
associative 168
defined 180
indexing 64, 182
list of predefined 63
null elements 142
populating 181
predefined 63
referring to elements 64, 182
undefined elements 142
assignment operators 143
defined 141

B

bitwise operators
logical 146
overview 145
shift 146
blur method 59
Boolean literals 138
Boolean object
overview 182
break statement 203
browser
hiding scripts from 29
Button object
See also buttons
buttons
submit 41

C

case sensitivity 27, 136, 167
CGI programs
and image maps 93
submitting forms to 40
validating form input for 38
Checkbox object
See also checkboxes
clearTimeout method 187
client JavaScript 21
client-side JavaScript 20
overview 21
close method 59
window object 66
colors
hexadecimal values 215
list of 215
string literals 215
string literals for 215-220
commas, in cookies 95
comment statement 209
comments 29
types of 209
comparison operators 143
compute function 47
conditional expressions 148
conditional statements 198-200
if...else 198
confirm method 47, 59
containership
specifying default object 209
with statement and 209
continue statement 205
cookies
defined 94
example of use 97
implementation of 221-226
with JavaScript 96
limitations for 95

D

data tainting
See tainting
data types
converting 136
and Date object 135
Java to JavaScript conversion 90
in JavaScript 25, 135
JavaScript to Java conversion 85
Date object
See also dates, times
creating 183
overview 183
using 183-187
dates
See also times
cookie expiration 95
working with 183
default objects, specifying 209
defaultStatus property 94
dialog boxes
Alert 59
Confirm 47, 59
Prompt 59
directories
conventions used xv
do...while statement 201
document conventions xv
document object 55
See also documents
described 60
example of properties 55-57
documents
See also windows
document object 60

E

elements array 61
elements property
See elements array
else statement
See if...else statement
embeds property
See embeds array
end_time method (LiveAudio) 228
entities 31
escape function 95, 96
escaping characters 139
eval function 47
event handlers
See also the individual event handlers
defining 43
defining functions for 46
example of use 46-47
quotation marks for 32
referring to windows 72
resetting 47
syntax for 45
events, defined 43
expressions
conditional 148
in HTML attributes 31
overview 141
that return no value 151
types of 141

F

fade_from_to method (LiveAudio) 228
fade_to method (LiveAudio) 228
flashing text applet example 83
floating-point literals 138
focus method 59
for loops
continuation of 205
sequence of execution 200
termination of 203
for statement 200
for...in statement 208
form elements
updating 38
updating dynamically 58
FORM HTML tag 55, 74
Form object
See also forms
described 61
elements array 61
forms
elements array 61
Form object 61
forms array 61
referring to windows in submit 74
validating input 38
forms array 61
forms property
See forms array
FRAME HTML tag 59
Frame object
See also frames
described 59-60
frames
closing 66
creating 68
defined 67
example of creation 70-??
figure of 67
Frame object 59-60
frames array 68, 69
hierarchy of 68
navigating 70
referring to 70, 72-??
updating 69
frames array 68, 69
frames property
See frames array
FRAMESET HTML tag 68
function keyword 33, 168
Function object
overview 187
functions
See also the individual functions
calling 33-35
defined 33
defining 33-35
defining and calling 168-170
examples of 39
excess arguments for 170
Function object 187
isNan 193
parseFloat 194
parseInt 194
recursive 169
using built in 192-194
using validation 40-41

G

getDay method 184
getHours method 186
getMinutes method 186
getSeconds method 186
getTime method 184
GetVolume method (LiveAudio) 228
go method 62
graphics
See images

H

HEAD HTML tag 169
Hello World applet example 82, 88
history list 62
history object 55
described 62
history property
See history array
HREF attribute 93
HTML
embedding JavaScript in 26-33
and JavaScript xiii
HTML layout 57-59
HTML tags
A 74
FORM 55, 74
FRAME 59
FRAMESET 68
HEAD 169
IMG 93
MAP 92
NOSCRIPT 33
PRE 37
SCRIPT 27
TITLE 56
hypertext
See links
HyperText Markup Language
See HTML

I

identity taint code 107
if...else statement 198
image maps
client-side 92
server-side 93
images property
See images array
IMG HTML tag 93
integers, in JavaScript 137
ISMAP attribute 93
isNan function
overview 193
IsPaused method (LiveAudio) 228
IsPlaying method (LiveAudio) 228
IsReady method (LiveAudio) 228

J

Java
See also LiveConnect
accessing with LiveConnect 80
communication with JavaScript 77-90
compared to JavaScript 25
getting JavaScript window handle 86
to JavaScript communication 86
java package 79
java_30 file 79
JavaScript
background for using xiii
case sensitivity 27
communication with Java 77-90
compared to Java 25
described 25-??
differences between server and client 20
embedding in HTML 26-33
entities 31
external file of 30
and HTML layout 57-59
to Java communication 80
LiveWire 22-24
Navigator 21-22
reserved words 213
right-hand evaluation 31
special characters 139
specifying version 27
URLs 91

K

keywords 213

L

labeled statement 203
labeled statements
with break 203
with continue 205
LANGUAGE attribute 27
language, specifying 27
layout, HTML 57-59
left shift operator 147
length property 191
Link object
See also links
links
creating 74
image maps 93
referring to windows 74
with no destination 151
links property
See links array
literals
Boolean 138
floating point 138
integers 137
overview 137
string 138
LiveAudio 227-231
examples 228
and LiveConnect 227-231
methods 228
LiveConnect 77-90
accessing Java directly 80
accessing JavaScript objects 87
accessing JavaScript properties 87
calling JavaScript methods 87
controlling Java applets 81
controlling Java plug-ins 85
getting a window handle 86
Hello World example 88
and LiveAudio 227-231
LiveWire applications, validating form input for 38
LiveWire JavaScript
See server JavaScript
location object 55
described 61
location property 69
logical operators
overview 147
short-circuit evaluation 148
loop statements 200-205
break 203
continue 205
do...while 201
for 200
labeled 203
while 202
loops
continuation of 205
for...in 208
termination of 203
lowercase 27, 136

M

MAP HTML tag 92
Math object
overview 188
messages
Alert dialog box 59
Confirm dialog box 59
Prompt dialog box 59
status bar 94
METHOD attribute 57
methods
See also the individual methods
defined 35
defining 176
referring to windows 72
MIME types
client capability 98
mimeTypes array 98
mimeTypes property
See mimeTypes array

N

NAME attribute 56
Navigator
See also Navigator 2.0, Navigator 3.0
and JavaScript 21, 22
MIME types supported 98
predefined arrays 63
printing output 37
Navigator 2.0
See also Navigator
Navigator 3.0
See also Navigator
Navigator JavaScript
See client JavaScript
Navigator JavaScript. See client-side JavaScript
navigator object 54
See also Navigator
described 62
Netscape packages
See packages
netscape.applet package 79
netscape.javascript package 79, 86
netscape.plugin package 79
netscape.sun package 79
new operator 149, 173
NOSCRIPT HTML tag 33
NS_ENABLE_TAINT environment variable 106
null keyword 142
Number object
overview 190
numbers
Number object 190
parsing from strings 194

O

object manipulation statements
for...in 208
new operator 206
this keyword 207
with statement 209
objects
See also the individual objects
adding properties 175, 176
creating new types 171-175
deleting 178
establishing default 209
hierarchy of 53
indexing properties 175
overview 167
onChange event handler 39, 40
onClick event handler 39, 40, 47, 97
onLoad event handler 186
onMouseOut event handler 94
onMouseOver event handler 94
onSubmit event handler 41
open method 59
window object 65
operators
arithmetic 144-??
assignment 143
bitwise 145-146
comparison 143
defined 141
logical 147
order of 151
overview 142
special 148
string 148
Option object
See Select object
options property
See options array
output
displaying 38
printing 37

P

packages
java 79
and LiveConnect 78
netscape 78
netscape.applet 79
netscape.javascript 79, 86
netscape.plugin 79
netscape.sun 79
sun 79
using 79
pages
objects for 54
updating 38
parent property 72
parse method 185
parseFloat function
overview 194
parseInt function
overview 194
pause method (LiveAudio) 228
PI property 188
play method (LiveAudio) 228
Plugin object
See also plug-ins
plug-ins
controlling with LiveConnect 85
determining installed 98
plugins array 99
plugins property
See plugins array
PRE HTML tag 37
printing generated HTML 37
prompt method 59
properties
See also the individual properties
adding to objects 176
indexing 175
naming 57
overview 167
referring to 55
referring to windows 72

Q

quotation marks
for string literals 138
using double 32
using single 32

R

Radio object
See also radio buttons
reflection 57-59
reserved words 213
reset buttons
See also buttons
Reset object
See also reset buttons
return statement 34
RGB color values 215
right shift operators 147
right-hand evaluation 31

S

SCRIPT HTML tag 27
LANGUAGE attribute 27
SRC attribute 30
scripts
example of 29
hiding 29
SCRIPT tag 27
tainting ??-108
scroll method 59
security
See also tainting
Select object
See also selection lists
self property 72
semicolons
for event handlers 45
in cookies 95
in JavaScript 30
server JavaScript 22
servers
accessing ??-108
setDay method 184
setInterval method 59
setTime method 184, 185
setTimeout method 59, 187
setvol method (LiveAudio) 228
sound
See LiveAudio
space characters, in cookies 95
special operators 148
new 149
typeof 150
void 151
SRC attribute 30
start_at_beginning method (LiveAudio) 228
start_time method (LiveAudio) 228
statements
See also the individual statements
break 203
conditional 198-200
continue 205
do...while 201
for 200
for...in 208
if...else 198
labeled 203
loop 200-205
object manipulation 206-209
overview 197-209
while 202
status bar
displaying hints 94
displaying messages 60, 94
status property 60, 94
stop method (LiveAudio) 228
stop_at_end method (LiveAudio) 228
StopAll method (LiveAudio) 228
string literals 138
String object
See also strings
overview 190
string operators 148
submit buttons
See also buttons
submit method 41
Submit object
See also submit buttons
subwindows, updating 38
sun package 79

T

tainting ??-108
accumumlator 107
conditional statements and 107
control flow and 107
enabling 106
individual data elements 107
NS_ENABLE_TAINT 106
overview 105
properties tainted by default 105
taint accumulator 107
taint code 107
untainting data elements 107
TARGET attribute 74
this keyword 40, 46, 174, 177
described 207
for object references 177
times
See also dates
working with 183
TITLE HTML tag 56
toGMTString method 95
top property 72
typeof operator 150

U

unescape function 95, 96
uppercase 27, 136
URLs
conventions used xv
javascript: 91

V

values
See data types
var statement 137
variables
declaring 137
in JavaScript 136
naming 136
scope of 137
void operator 151

W

while loops
continuation of 205
termination of 203
while statement 202
window object 54
See also windows
described 59-60
methods of 59
windows
See also documents
closing 66
giving focus to 75
handles for 86
naming 66, 72
navigating among 74
opening 65
overview 65
referring to 72-??
taint accumulator 107
window object 59-60
with statement 189
described 209
write method 60, 169
example of use 35
using 35-??
writeln method 37, 60
See also write method


[Previous] [Contents]

Last Updated: 11/26/97 09:26:14


Copyright © 1997 Netscape Communications Corporation