JAVASCRIPT NS REFERENCE

Find Freelance Work. Be Independent! Click a category!
Web Design Complete Website Web Programming Flash Animation Graphics More Categories Bidding Info


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

 

A

A HTML tag 66, 179, 305
abort event 336
about: (URL syntax) 316, 317
abs method 175
absolute value 175
accumulator
See tainting
acos method 176
ACTION attribute 176, 252
action property 176
alert method 41, 51, 177
alinkColor property 178
anchor method 179
Anchor object 179
See also anchors
anchors
Anchor object 179
creating 179
defining 179
linking to 66
anchors array 180
anchors property
See anchors array
animation 288
appCodeName property 183
APPLET HTML tag 184
Applet object 184
applets
controlling with LiveConnect 73
example of 74, 75
flashing text example 75
Hello World example 74, 80
including in a web page 184
referencing 73
applets array 185
appName property 187
appVersion property 187
arc cosine 176
arc sine 193
arc tangent 194
AREA HTML tag 305
Area object 189, 305
See Link object
arguments array 120, 189
arithmetic operators
decrement 109
increment 109
modulus 108
unary negation 109
Array object 190
creating 128
overview 127
arrays
See also the individual arrays
Array object 190
associative 118
creating from strings 419
defined 128
dense 192
increasing length of 191
indexing 55, 129, 192
initial length of 191
joining 298
length of, determining 301
list of predefined 54
null elements 106
populating 128
predefined 54
referring to elements 55, 129, 192
reversing 390
sorting 416
transposing 390
undefined elements 106
ASCII, string value 239, 453
asin method 193
assignment operators 107
defined 105
atan method 194
atan2 method 194

D

data tainting
See tainting
data types
converting 100
and Date object 99
Java to JavaScript conversion 81
in JavaScript 26, 99
JavaScript to Java conversion 77
Date object 221
See also dates, times
creating 130
overview 130
using 130-134
dates
See also times
converting to string 445
cookie expiration 87
Date object 221
day of month 268
day of week 269
defining 221
GMT conversion 444
milliseconds since 1970 359, 456
month 270
working with 130
year 272, 415
decrement operator 109
default objects, specifying 148, 162
defaultChecked property 222
defaultSelected property 223
defaultStatus property 86, 225
defaultValue property 226
dense arrays 192
description property 227
destroy method (LiveConnect) 172
dialog boxes
Alert 51, 177
Confirm 41, 51, 216
Prompt 51, 372
directories, conventions used 18
document object 46, 228
See also documents
anchors array 180
applets array 185
described 52
embeds array 235
example of properties 47-49
forms array 253
images array 289
links array 308
documentation conventions 18-19
documents
See also windows
anchors array 180
anchors in 180
applets array 185
applets in 185
closing 212
color of 196, 243
current URL 454
defining 228
displaying HTML output in 228
document object 52, 228
embeds array 235
error handler for 341
forms array 253
images array 289
images in 289
last modified date 257, 300
links array 308
onUnload event handler 345, 351
opening 351
reloading 383
title 444
writing to 471, 472
domain property 232

G

getDate method 268
getDay method 131, 269
getHours method 133, 269
getMember method (LiveConnect) 168
getMinutes method 133, 270
getMonth method 270
getPeer method (LiveConnect) 172
getSeconds method 133, 271
getSlot method (LiveConnect) 168
getTime method 132, 271
getTimezoneOffset method 272
GetVolume method (LiveAudio) 500
getWindow method (LiveConnect) 172
getWindow static method (LiveConnect) 168
getYear method 272
Go menu 273, 279
go method 53, 273
gopher: (URL syntax) 316

J

Java
See also LiveConnect
accessing with LiveConnect 72
communication with JavaScript 69-82
compared to JavaScript 26
determining whether enabled 298
enabling and disabling 298
getting JavaScript window handle 78
to JavaScript communication 77
java package 70
java_30 file 71
javaEnabled method 298
JavaScript
background for using 17
case sensitivity 27
communication with Java 69-82
compared to Java 26
described 25
embedding in HTML 27-33
entities 32
external file of 30
and HTML layout 49-50
to Java communication 72
LiveWire 24-25
Navigator 23-24
reserved words 485
right-hand evaluation 32
special characters 103
specifying version 27
types of 23
URLs 83
javascript: (URL syntax) 316, 317
join method 298
JSException class 169
JSException constructor (LiveConnect) 170
JSObject class 165

N

NAME attribute 48
name property 328
NaN property 331
natural logarithms
base of 233
e 233
e raised to a power 242
of 10 313
of 2 313
of a number 318
Navigator
See also Navigator 2.0, Navigator 3.0
about: (URL syntax) 317
code name of 183
enabling and disabling Java 298
and JavaScript 23, 24
MIME types in 325
MIME types supported 94, 324
name of 187
navigator object 332
plug-ins in 367
plug-ins installed on 365
predefined arrays 54
printing output 37
user agent 455
version of 187
Navigator 2.0
See also Navigator
Navigator 3.0
See also Navigator
changed functionality 510-512
new functionality 505-510
Navigator JavaScript
See client JavaScript
navigator object 46, 332
See also Navigator
described 54
mimeTypes array 325
plugins array 367
NEGATIVE_INFINITY property 333
Netscape packages
See packages
netscape.applet package 71
netscape.javascript package 71, 77
netscape.javascript.JSException class 169
netscape.javascript.JSObject class 165
netscape.javascript.Plugin class 171
netscape.plugin package 71
netscape.sun package 71
new operator 113, 121, 158
news: (URL syntax) 316
next property 334
NOSCRIPT HTML tag 33
NS_ENABLE_TAINT environment variable 91
null keyword 106
Number object 335
overview 137
numbers
absolute value of 175
arc cosine of 176
arc sine of 193
arc tangent of 194
base of 447
cosine of 219
defining Number objects 335
exponents of 371
greater of two 322
infinite 333, 371
isNAN 296
lesser of two 327
maximum value 323
minimum value 328
natural logarithm of 318
not-a-number value 331
Number object 137, 335
obtaining integer 205, 247
parsing from strings 140, 359, 360
random 382
rounding 391
sine of 415
square root 420, 421
tangent of 435

Q

quotation marks
for string literals 102
using double 40
using single 40

R

radio buttons
clicking programmatically 211
default selection state 222
defining 378
number of buttons 301
Radio object 378
selecting programmatically 210
selection state 210
Radio object 378
See also radio buttons
number of buttons 301
random method 382
referrer property 382
reflection 49-50
refresh method 383
reload method 383
removeMember method (LiveConnect) 168
replace method 385
reserved words 485
reset buttons
See also buttons
clicking programmatically 211
defining 387
reset method 387
Reset object 387
reset event 349
reset method 387
Reset object 387
See also reset buttons
return statement 34, 160
reverse method 390
RGB color values 487
right shift operators 112
right-hand evaluation 32
round method 391

U

unary negation 109
unescape function 87, 88, 453
unload event 351
untaint function 453
uppercase 27, 101, 451
URLs
anchor name in 275
calling document's 382
conventions used 19
current 314, 454
domain 282
entire URL string 283
examples of common 316
form destination 176
form field input 252
history list 279
host 282
hostname:port 281
IP address 282
javascript: 83
loading from history list 273
next 258
port 370
previous 195
protocol 373
query information 394
replacing 385
syntax of 314, 316
url-path 364
user interaction
Alert dialog box 177
applets 184
area objects 305
buttons 202
checkboxes 206
Confirm dialog box 216
FileUpload objects 244
image objects 286, 305
link objects 305
Prompt dialog box 372
radio buttons 378
reset buttons 387
selection lists 396
submit buttons 428
Text objects 436
Textarea objects 440
userAgent property 455
UTC method 456

B

Back button 195
back method 195
background color 196
bgColor property 196
BIG HTML tag 196
big method 196
bitwise operators
logical 110
overview 110
shift 111
BLINK HTML tag 197
blink method 197
blur event 337
blur method 51, 198
BOLD HTML tag 199
bold method 199
Boolean literals 102
Boolean object 200
overview 130
border property 201
break statement 145, 154
browser
about: (URL syntax) 317
code name of 183
hiding scripts from 29
name of 187
navigator object 332
user agent 455
version of 187
Button object 202
See also buttons
buttons
Button object 202
clicking programmatically 211
defining 202
reset 387
submit 44, 428

E

E property 233
elements array 52, 234
elements property
See elements array
else statement
See if...else statement
embeds array 235
embeds property
See embeds array
enabledPlugin property 237
encoding property 238
ENCTYPE attribute 238, 252
end_time method (LiveAudio) 500
entities 32
error event 341
escape function 87, 88, 239
escaping characters 103
Euler's constant 233
base 10 logarithm of 319
base 2 logarithm of 319
raised to a power 242
eval function 41, 100
eval method 240
eval method (LiveConnect) 168
event handlers 336-351
See also the individual event handlers
defining 37
defining functions for 39
example of use 40-41
in Function objects 267
list of 38
quotation marks for 40
referring to windows 64
resetting 41
scripting 37-41
specifying object names in 213
summary of 475-483
syntax for 39
events, defined 37
exp method 242
expressions
conditional 106
in HTML attributes 32
overview 105
that return no value 115
types of 105

H

hash property 275
HEAD HTML tag 119
height property 276
Hello World applet example 74, 80
Hidden object 276
history array 279
history list 53
current URL in 220
loading URL from 273
next URL in 258, 334
previous URL in 195, 372
replacing current entry 351, 385