Полезная информация

Table of Contents | Previous


Index

Symbols

- (bitwise NOT) operator 570
- (unary negation) operator 569
-- (decrement) operator 569
! (logical NOT) operator 573
!= (not equal) operator 566, 567
!== (strict not equal) operator 566, 567
# (hash mark in URL) 228
$& property 346
$* property 346
$+ property 346
$_ property 346
$` property 346
$' property 346
$1, ..., $9 properties 345
% (modulus) operator 568
%= operator 564
&& (logical AND) operator 573
& (bitwise AND) operator 570
&= operator 565
) 589
*/ comment 548
*= operator 564
+ (string concatenation) operator 575
++ (increment) operator 569
+= (string concatenation) operator 575
+= operator 564
/* comment 548
// comment 548
/= operator 564
< (less than) operator 566
<< (left shift) operator 570, 572
<<= operator 565
<= (less than or equal) operator 566
== (equal) operator 566, 567
=== (strict equal) operator 566, 567
-= operator 564
> (greater than) operator 566
>= (greater than or equal) operator 566
>> (sign-propagating right shift) operator 570, 572
>>= operator 565
>>> (zero-fill right shift) operator 570, 572
>>>= operator 565
?: (conditional) operator 575
^ (bitwise XOR) operator 570
^= operator 565
| (bitwise OR) operator 570
|= operator 565
|| (logical OR) operator 573
(comma) operator 576

A

abort event 513
about: (URL syntax) 237
above property 211
abs method 254
acos method 254
action property 151
A HTML tag 208
alert method 453
alinkColor property 109
anchor method 387
Anchor object 20
anchors
Anchor object 20
creating 387
anchors array 110
AND (&&) logical operator 573
AND (&) bitwise operator 570
animation 189
appCodeName property 276
APPLET HTML tag 23
Applet object 23
applets
including in a web page 23
applets array 110
apply method 163
appName property 276
appVersion property 277
AREA HTML tag 208
Area object 25, 223
arguments array 165
arithmetic operators 568
% (modulus) 568
-- (decrement) 569
- (unary negation) 569
++ (increment) 569
arity property 170
Array object 26
arrays
Array object 26
creating from strings 407
deleting elements 576
dense 27
increasing length of 28
indexing 27
initial length of 27, 29
Java 201
joining 34
length of, determining 34, 153, 185, 400
referring to elements 27
sorting 40
asin method 255
assignment operators 564
%= 564
&= 565
*= 564
+= 564
/= 564
<<= 565
-= 564
>>= 565
>>>= 565
^= 565
|= 565
conditional statements and 554
atan2 method 256
atan method 256
availHeight property 369
availWidth property 369

B

background color 212
background property 211
back method 183, 454
below property 211
bgColor property 111, 212
BIG HTML tag 388
big method 388
bitwise operators 570
& (AND) 570
- (NOT) 570
<< (left shift) 570, 572
>> (sign-propagating right shift) 570, 572
>>> (zero-fill right shift) 570, 572
^ (XOR) 570
| (OR) 570
logical 571
shift 571
BLINK HTML tag 388
blink method 388
blur event 514
blur method
Button object 54
Checkbox object 64
FileUpload object 143
Password object 318
Radio object 331
Reset object 363
Select object 376
Submit object 420
Textarea object 438
Text object 428
window object 455
BOLD HTML tag 389
bold method 389
Boolean object 48
conditional tests and 48
border property 194
bottom property 213
break statement 546
browser
about: (URL syntax) 237
code name of 276
name of 276
Button object 53
buttons
Button object 53
clicking programmatically 332, 363, 420
submit 418

C

caching graphics 189
callee property 168
caller property 168
call method 170
call method (LiveConnect) 589
captureEvents method
document object 111
Layer object 212
window object 455
ceil method 257
change event 516
charAt method 390
charCodeAt method 391
checkboxes
Checkbox object 61
clicking programmatically 332, 363, 420
default selection state 333
defining 61
Checkbox object 61
checked property
Checkbox object 64
Radio object 332
classes, accessing Java 204, 313
className property 314
clearInterval method 456
clearTimeout method 456
click event 517
click method
Button object 55
Checkbox object 65
Radio object 332
Reset object 363
Submit object 420
clip.bottom property 213
clip.height property 213
clip.left property 213
clip.right property 213
clip.top property 214
clip.width property 214
closed property 458
close method
document object 112
window object 457
colorDepth property 369
colors
background 212
hexadecimal values 599
list of 599
string literals 599
string literals for 599-604
comma () operator 576
comments 548
comment statement 548
comparison operators 565
!= (not equal) 566, 567
!== (strict not equal) 566, 567
< (less than) 566
<= (less than or equal) 566
== (equal) 566, 567
=== (strict equal) 566, 567
> (greater than) 566
>= (greater than or equal) 566
compile method 347
complete property 194
concat method
Array object 32
String object 392
conditional (?:) operator 575
conditional tests
assignment operators and 554
Boolean objects and 48
confirm method 459
constructor property
Array object 33
Boolean object 50
Date object 74
Function object 172
Number object 288
Object object 296
RegExp object 348
String object 392
containership
specifying default object 560
with statement and 560
continue statement 548
conventions 545
cookie property 113
cos method 258
current property 183

D

data property 135
Date object 69
dates
converting to string 100
Date object 69
day of week 75
defining 69
milliseconds since 1970 103
month 77
DblClick event 520
decrement (--) operator 569
defaultChecked property
Checkbox object 65
Radio object 333
default objects, specifying 560
defaultSelected property 308
defaultStatus property 460
defaultValue property
Password object 319
Textarea object 438
Text object 428
delete operator 576
deleting
array elements 576
objects 576
properties 576
dense arrays 27
description property
MimeType object 273
Plugin object 326
destroy method (LiveConnect) 593
dialog boxes
Confirm 459
Prompt 479
directories
conventions used 16
disableExternalCapture method 461
do...while statement 550
document conventions 16
document object 105
embeds array 115
document property
Layer object 214
window object 461
documents
color of 212
document object 105
embeds array 115
domain property 114
DragDrop event 520

E

elements array 151
embeds array 115
enabledPlugin property 273
enableExternalCapture method 461
encoding property 152
ENCTYPE attribute 152
E property 259
equals method (LiveConnect 589
error event 521
escape function 496
Unicode and 497
Euler's constant 259
raised to a power 259
eval function 498
eval method
LiveConnect 589
Object object 297
event handlers 513-541
See also handleEvent method
event object 133
in Function objects 161
specifying object names in 457
event object 133
events
event object 133
exceptions
LiveConnect 586
exec method 348
exp method 259
export statement 550
expressions that return no value 582

F

fgColor property 116
file: (URL syntax) 237
filename property 327
FileUpload object 141
find method 462
fixed method 393
floor method 260
focus
removing 54, 331, 363, 376, 419, 420, 428, 438, 455
focus event 525
focus method
Button object 55
Checkbox object 66
FileUpload object 143
Password object 319
Radio object 334
Reset object 364
Select object 377
Submit object 420
Textarea object 439
Text object 429
window object 463
fontcolor method 393
fonts
big 388
blinking 388
bold 389
fontsize method 394
for...in statement 552
for loops
continuation of 548
syntax of 551
termination of 546
FORM HTML tag 147
Form object 147
elements array 151
form property
Button object 56
Checkbox object 66
FileUpload object 143
Hidden object 178
Password object 320
Radio object 334
Reset object 364
Select object 377
Submit object 421
Textarea object 439
Text object 429
forms
checkboxes 61
defining 147
element focus 54, 331, 363, 376, 419, 420, 428, 438, 455
element names 67, 153, 431, 441, 470
elements array 151
ENCTYPE attribute 152
Form object 147
MIME encoding 152
submit buttons 418
submitting 418
forms array 117
for statement 551
Forward button 463
forward method
History object 184
window object 463
Frame object 157
frames
Frame object 157
top 221, 491
frames array 464
fromCharCode method 395
ftp: (URL syntax) 237
Function object 158
specifying arguments for 159
specifying event handler with 161
as variable value 159
functions
arguments array 165
callee property 168
caller property 168
declaring 553
Function object 158
length property 169
list of 495
nesting 160, 161
number of arguments 153, 185, 400
return values of 556
top-level 495
as variable value 159
function statement 553

G

getDate method 74
getDay method 75
getFullYear method 75
getHours method 76
getMember method (LiveConnect) 590
getMilliseconds method 76
getMinutes method 77
getMonth method 77
getPeer method (LiveConnect) 593
getSeconds method 78
getSelection method 118
getSlot method (LiveConnect) 590
getTime method 78
getTimezoneOffset method 79
getUTCDate method 79
getUTCDay method 80
getUTCFullYear method 80
getUTCHours method 81
getUTCMilliseconds method 81
getUTCMinutes method 82
getUTCMonth method 83
getUTCSeconds method 83
getWindow method (LiveConnect) 590, 593
getYear method 84
global object 495
global property 352
GMT time, defined, local time, defined 70
Go menu 181
go method 184
gopher: (URL syntax) 237

H

handleEvent method
Button object 57
Checkbox object 66
document object 118
FileUpload object 143
Form object 152
Image object 195
Layer object 214
Link object 228
Password object 320
Radio object 334
Reset object 364
Select object 377
Submit object 422
Textarea object 440
Text object 431
window object 465
hash property
Link object 228
Location object 239
height property
event object 135
Image object 195
Layer object 213
screen object 369
Hidden object 177
history list
next URL in 463
History object 181
current property 183
next property 186
previous property 186
history property 465
home method 466
hostname property
Link object 230
Location object 241
host property
Link object 229
Location object 240
href property
Link object 230
Location object 242
hspace property 196
HTML
generated 129, 130
HTML tags
A 208
APPLET 23
AREA 208
BIG 388
BLINK 388
BOLD 389
FORM 147
INPUT 61, 418
MAP 208
http: (URL syntax) 237

I

if...else statement 554
ignoreCase property 352
Image object 188
images
and animation 189
Area object 223
border 194
caching 189
preloading 189
size of 189
source 221
images array 119
import statement 555
increment (++) operator 569
indexOf method 396
index property 33
Infinity property 500
init method (LiveConnect) 593
in keyword 552
innerHeight property 466
innerWidth property 466
INPUT HTML tag 61, 418
input property
Array object 33
RegExp object 353
isActive method (LiveConnect) 594
isFinite function 501
isNaN function 501
italics method 398

J

JavaArray object 201
JavaClass object 204
javaEnabled method 278
java object 200
JavaObject object 205
JavaPackage object 207
java property 315
JavaScript
background for using 13
reserved words 597
versions and Navigator 14
javascript: (URL syntax) 237
join method 34
JSException class 586
JSException constructor (LiveConnect) 586
JSObject class 588

K

KeyDown event 526
KeyPress event 527
KeyUp event 528
keywords 597

L

label statement 555
language property 279
lastIndexOf method 399
lastIndex property 354
lastMatch property 355
lastModified property 119
lastParen property 355
Layer object 208
layers 208
layers array 120
layerX property 135
layerY property 136
leftContext property 355
left property 213, 215
left shift (<<) operator 570, 572
length property
arguments array 169
Array object 34
Form object 153
Function object 172
History object 185
JavaArray object 202
Plugin object 327
Select object 378
String object 400
window object 467
linkColor property 121
link method 400
Link object 223
links
anchors for 387
and areas 208
defining 208
and images 208
Link object 223
with no destination 582
links array 122
lists, selection 371
LiveConnect
JavaArray object 201
JavaClass object 204
java object 200
JavaObject object 205
JavaPackage object 207
JSException class 586
JSObject class 588
netscape object 285
Packages object 313
sun object 425
LN10 property 260
LN2 property 261
load event 529
load method 215
locationbar property 467
Location object 235
location property
document object 128
window object 467
LOG10E property 262
LOG2E property 262
logarithms
base of natural 259
natural logarithm of 10 260
logical operators 573
! (NOT) 573
&& (AND) 573
|| (OR) 573
short-circuit evaluation 573
log method 261
loops
continuation of 548
for 551
termination of 546
while 559
lowercase 385, 415
lowsrc property 196

M

mailto: (URL syntax) 237
MAP HTML tag 208
match method 401
Math object 252
MAX_VALUE property 288
max method 263
MAYSCRIPT attribute 23
menubar property 468
messages
Confirm dialog box 459
Prompt dialog box 479
method property 153
methods, top-level 495
MIME encoding 152
MimeType object 271
MIME types
configured plug-in for 273
plug-ins supported 324
mimeTypes array 279
MIN_VALUE property 289
min method 263
modifiers property 136
modulo function 568
modulus (%) operator 568
MouseDown event 532
MouseMove event 533
MouseOut event 533
MouseOver event 534
MouseUp event 535
moveAbove method 215
moveBelow method 216
moveBy method
Layer object 216
window object 468
move event 536
moveToAbsolute method 217
moveTo method
Layer object 216
window object 469
multiline property 356

N

name property
Button object 57
Checkbox object 67
FileUpload object 144
Form object 153
Hidden object 179
Image object 197
Layer object 217
Password object 321
Plugin object 327
Radio object 335
Reset object 365
Select object 378
Submit object 422
Textarea object 441
Text object 431
window object 470
NaN property
Number object 289
top-level 502
natural logarithms
base of 259
e 259
e raised to a power 259
of 10 260
Navigator
about: (URL syntax) 237
code name of 276
JavaScript versions supported 14
name of 276
navigator object 275
NEGATIVE_INFINITY property 290
nesting functions 160, 161
netscape.javascript.JSException class 586
netscape.javascript.JSObject class 588
netscape.javascript.Plugin class 592
netscape object 285
netscape property 315
new operator 578
news: (URL syntax) 237
next property 186
NOT (!) logical operator 573
NOT (-) bitwise operator 570
Number function 503
Number object 286
numbers
greater of two 263
identifying 501
Number object 286
obtaining integer 257
parsing from strings 504
square root 267

O

Object object 295
objects
creating new types 578
deleting 576
establishing default 560
focus 54, 331, 363, 376, 419, 420, 428, 438, 455
getting list of properties for 552
iterating properties 552
Java, accessing 205
specifying names in event handlers 457
onAbort event handler 513
onBlur event handler 514
onChange event handler 516
onClick event handler 517
onDblClick event handler 520
onDragDrop event handler 520
onError event handler 521
onFocus event handler 525
onKeyDown event handler 526
onKeyPress event handler 527
onKeyUp event handler 528
onLoad event handler 529
onMouseDown event handler 532
onMouseMove event handler 533
onMouseOut event handler 533
onMouseOver event handler 534
onMouseUp event handler 535
onMove event handler 536
onReset event handler 537
onResize event handler 538
onSelect event handler 538
onSubmit event handler 539
onUnload event handler 540
opener property 475
open method
document object 123
window object 470
operators 561-582
arithmetic 568
assignment 564
bitwise 570
comparison 565
list of 561
logical 573
special 575
string 575
Option object 306
options array 379
OR (|) bitwise operator 570
OR (||) logical operator 573
outerHeight property 476
outerWidth property 476

P

packages, accessing Java 207
Packages object 313
pageXOffset property 477
pageX property
event object 137
Layer object 218
pageYOffset property 477
pageY property
event object 137
Layer object 218
parentLayer property 218
parent property 478
parseFloat function 504
parseInt function 505
parse method 85
Password object 317
default value 319, 428, 438
pathname property
Link object 231
Location object 244
personalbar property 478
PI property 264
pixelDepth property 369
platform property 280
Plugin class 592
Plugin constructor (LiveConnect) 594
Plugin object 324
plug-ins
defined 324
determining installed 324
plugins array 125
navigator object 280
pop method 35
port property 245
Link object 231
POSITIVE_INFINITY property 291
pow method 265
preference method 281
previous property 186
printing generated HTML 130
print method 479
prompt method 479
properties
deleting 576
getting list of for an object 552
iterating for an object 552
top-level 495
protocol property
Link object 232
Location object 246
prototype property
Array object 36
Boolean object 50
Date object 86
Function object 172
Number object 292
Object object 297
RegExp object 356
String object 402
push method 36

R

radio buttons
clicking programmatically 332, 363, 420
default selection state 333
Radio object 328
Radio object 328
random method 265
referrer property 126
refresh method 281
RegExp object 338
regular expressions 338
releaseEvents method
document object 126
Layer object 218
window object 480
reload method 247
removeMember method (LiveConnect) 590
replace method 248, 402
reserved words 597
reset buttons
clicking programmatically 332, 363, 420
Reset object 360
reset event 537
reset method 154
Reset object 360
resizeBy method
Layer object 219
window object 481
resize event 538
resizeTo method
Layer object 219
window object 481
return statement 556
reverse method 37
RGB color values 599
rightContext property 356
right property 213
text p 234
round method 266
routeEvent method
document object 127
Layer object 220
window object 482

S

screen object 368
screenX property 137
screenY property 138
scrollbars property 483
scrollBy method 484
scroll method 483
scrollTo method 484
search method 405
search property
Link object 233
Location object 250
security
closing windows 457
selectedIndex property 380
select event 538
selection lists
adding options 307
changing option text 307
default selection state 308
deleting options 379
number of options 153, 185, 400
option text 310
Select object 371
select method
FileUpload object 145
Password object 322
Textarea object 442
Text object 432
Select object 371
self property 485
setDate method 87
setFullYear method 87
setHours method 88
setInterval method 486
setMember method (LiveConnect) 590
setMilliseconds method 89
setMinutes method 90
setMonth method 91
setSeconds method 92
setSlot method (LiveConnect) 591
setTime method 92
setTimeout method 487
setUTCDate method 93
setUTCFullYear method 94
setUTCHours method 94
setUTCMilliseconds method 95
setUTCMinutes method 96
setUTCMonth method 97
setUTCSeconds method 97
setYear method 98
shift method 37
short-circuit evaluation 573
siblingAbove property 220
siblingBelow property 220
sign-propagating right shift (>>) operator 570, 572
sin method 267
slice method 38, 406
small method 407
sort method 40
source property 357
special operators 575
splice method 43
split method 407
SQRT1_2 property 268
SQRT2 property 269
sqrt method 267
square roots 267
src property
Image object 197
Layer object 221
statements 545-560
syntax conventions 545
statusbar property 490
status property 489
stop method 490
strike method 410
String function 507
String object 383
string operators 575
strings
blinking 388
bold 389
character position within 384, 390, 396
concatenating 575
converting from date 100
converting to floating point 504
creating from arrays 34
defining 383
fontsize of 388
length of 153, 185, 400
lowercase 385, 415
parsing 504
splitting into arrays 407
String object 383
sub method 411
submit buttons
clicking programmatically 332, 363, 420
defining 418
Submit object 418
submit event 539
submit method 155
Submit object 418
substring method 413
substr method 411
suffixes property 274
sun object 425
sun property 316
sup method 414
switch statement 557
syntax conventions 545

T

taintenabled method 283
taint function 508
tan method 269
target property
event object 138
Form object 156
Link object 233
test method 357
Textarea object 435
default value 319, 428, 438
Text object 426
default value 319, 428, 438
text property 310
this.form 56, 66, 143, 178, 320, 334, 364, 377, 421, 429, 439
this keyword 580
timeouts
canceling 456
times
Date object 69
defining 69
minutes 77
title property 127
toGMTString method 99
toLocaleString method 100
toLowerCase method 415
toolbar property 491
top-level properties and functions 495
top property
Layer object 214, 221
window object 491
toSource method
Array object 45
Boolean object 51
Date object 101
Function object 174
Number object 292
Object object 298
RegExp object 358
String object 416
toString method
Array object 45
Boolean object 51
built-in 299
Date object 102
Function object 175
JavaArray object 203
LiveConnect 591
Number object 293
Object object 299
RegExp object 359
String object 416
user-defined 300
toUpperCase method 417
toUTCString method 102
typeof operator 581
type property
Button object 58
Checkbox object 67
event object 138
FileUpload object 145
Hidden object 179
MimeType object 274
Password object 322
Radio object 335
Reset object 366
Select object 381
Submit object 423
Textarea object 442
Text object 432

U

unary negation (-) operator 569
undefined property 509
unescape function 509
unicode and 497
Unicode
charCodeAt method 391
escape function and 497
unescape function and 497
unload event 540
unshift method 46
untaint function 510
unwatch method 302
URLs
anchor name in 228
conventions used 16
current 235
escaping characters in 496
examples of common 237
history list 181
next 463
syntax of 237
userAgent property 283
user interaction
applets 23
area objects 208
checkboxes 61
Confirm dialog box 459
image objects 208
link objects 208
Prompt dialog box 479
submit buttons 418
UTC method 103
UTC time, defined 70

V

valueOf method
Array object 47
Boolean object 52
Date object 104
Function object 176
Number object 294
Object object 303
RegExp object 359
String object 417
value property
Button object 59
Checkbox object 68
FileUpload object 146
Hidden object 180
Option object 312
Password object 323
Radio object 336
Reset object 366
Submit object 423
Textarea object 443
Text object 433
variables
declaring 558
initializing 558
syntax for declaring 558
var statement 558
versions of JavaScript 14
view-source: (URL syntax) 237
visibility property 221
vlinkColor property 128
void function 224, 237
void operator 582
vspace property 199

W

watch method 304
which property 139
while loops
continuation of 548
syntax of 559
termination of 546
while statement 559
width property
event object 139
Image object 199
Layer object 214
screen object 370
window object 445
window property 492
windows
closed 458
closing 457
name of 67, 153, 431, 441, 470
top 221, 491
window object 445
with statement 560
writeln method 131
write method 129
generated HTML 129, 130

X

XOR (^) operator 570
x property 139

Y

y property 140

Z

zero-fill right shift (>>>) operator 570, 572
zIndex property 222

Table of Contents | Previous

Last Updated: 11/16/98 13:06:02

Copyright ╘ 1998 Netscape Communications Corporation