JavaScript手册 
目录
此参考中包含
的内容
轻松上手
简介
操作符
语句
核心
文档
窗口
表单
浏览器
事件和
事件句柄
LiveWire
数据库服务
进程管理服务
实用工具
全局函数
LiveConnect
的Java包
索引
版权
 
【上一章】 【目录】 【这是索引】

Index

Note: This index has not yet been updated.

Symbols

! operator 66
# (hash mark in URL) 254
% operator 62
& operator 63
&& operator 66
*/ comment 78
-- operator 63
++ operator 62
/* comment 78
// comment 78
^ operator 63
| operator 63
|| operator 66
~ operator 63

A

A HTML tag 277
abort event 499
about: (URL语法) 346, 347
abs method 141
acos method 142
action property 376
addClient function 669
agent property 620
alert method 317
alinkColor property 226
anchor method 174
Anchor object 262
anchors
Anchor object 262
creating 174
animation 266
appCodeName property 474
APPLET HTML tag 276
Applet object 276
applets
including in a web page 276
appName property 475
appVersion property 475
AREA HTML tag 277
Area object 249, 261
arguments array 130
arithmetic operators
decrement 62
increment 62
modulus 62
unary negation 63
Array object 94
arrays
Array object 94
creating from strings 192
dense 95
increasing length of 94
indexing 95
initial length of 94
joining 100
length of, determining 98, 173, 363, 377
referring to elements 95
sorting 106
asin method 143
assignment operators 60
atan method 143
atan2 method 144
AUTH_TYPE CGI variable 687

B

back method 318, 365
background color 280
beginTransaction method
of Connection objects 533, 571
bgColor property 228, 280
BIG HTML tag 175
big method 175
binary data, converting to string 642
bitwise operators
logical 64
overview 63
shift 65
BLINK HTML tag 175
blink method 175
blob function 671
Blob objects 610-614
blobImage method 611
blobLink method 613
blobImage method
of Blob objects 611
blobLink method
of Blob objects 613
BOLD HTML tag 176
bold method 176
Boolean object 111
border property 270
break statement 77
browser
about: (URL语法) 347
code name of 474
name of 475
Button object 416
buttons
Button object 416
clicking programmatically 428, 435, 445
submit 423
bytes, converting to string 642
byteToString method 642

C

C functions
calling 667
registering 668
caching graphics 266
call method (LiveConnect) 697
callC function 672
caller property 132
ceil method 145
CGI programs, and LiveWire xliii
CGI variables
AUTH_TYPE 687
HTTPS 687
HTTPS_KEYSIZE 687
HTTPS_SECRETKEYSIZE 687
PATH_TRANSLATED 687
QUERY_STRING 687
REMOTE_ADDR 687
REMOTE_HOST 687
REMOTE_USER 687
REQUEST_METHOD 687
SCRIPT_NAME 687
SERVER_NAME 688
SERVER_PORT 688
SERVER_PROTOCOL 688
SERVER_URL 688
charAt method 177
Checkbox object 446
checkboxes
Checkbox object 446
clicking programmatically 428, 435, 445
default selection state 441
defining 446
clearError method 643
clearInterval method 320
client
preserving properties 669
client JavaScript 49
client object 625
getting identifier 668, 688
maintaining 667
storing properties on project or server ??-689
uniquely referring to ??-689
close method
document object 241
File object 644
window object 321
closed property 301
colors
background 280
comment statement 78
comments 78
comparison operators 61
complete property 270
confirm method 322
connection method
of DbPool objects 562
Connection objects ??-553, ??-569, 570-588
beginTransaction method 533, 571
scope 554
constructor property 161
containership
specifying default object 90
with statement and 90
continue statement 78
conventions 75
cookie property 228
cos method 146
cosine 146
creating 668, 688
current property 363
cursor method 539, 575
Cursor objects 588-??
deleteRow method 594
insertRow method 595
next method 597, 609
properties 590
See also cursors.
updateRow method 598

D

database object 530
Date object 113
dates
converting to string 125
Date object 113
day of week 116
defining 113
milliseconds since 1970 126
month 117
DbPool objects 553-??
connection method 562
disconnect method 542, 562
storedProcArgs method 551, 567
debug function 673
decrement operator 62
default objects, specifying 90
defaultChecked property 441, 449
defaultSelected property 467
defaultStatus property 302
deleteRow method
of Cursor objects 594
dense arrays 95
destroy method 627
destroy method (LiveConnect) 702
dialog boxes
Confirm 322
Prompt 333
directories
conventions used xlv
disconnect method
of DbPool objects 542, 562
DNS 687
document conventions ??-xlv
document object 222
embeds array 231
documents
color of 280
document object 222
embeds array 231
domain property 230

E

E property 138
elements array 376
embeds array 231
enabledPlugin property 484
encoding property 377
ENCTYPE attribute 377
environment variables
accessing 687
eof method 644
error method 645
errors
status 641, 643
escape function 674
Euler's constant 138
raised to a power 146
eval method 162, 675
eval method (LiveConnect) 698
event handlers 499-??
defining 493
event object 497
in Function objects 129
specifying object names in 321
event object 497
events
event object 497
handling specific 242, 260, 275, 326, 379, 393, 402, 409, 415, 422, 429, 436, 446, 453, 463
events, defined 493
exists method 646
exp method 146
expiration method 628
expressions
that return no value 73

F

fgColor property 232
File object 639
file: (URL语法) 346
filename property 489
files
error status 641, 643
FileUpload object 410
find method 324
fixed method 179
floor method 147
flush function 677
described 677
flush method 647
focus
removing 319, 392, 401, 421, 424, 428, 435, 444, 463
focus method 325, 393, 401, 408, 414, 422, 429, 436, 445, 452, 463
fontcolor method 180
fonts
big 175
blinking 175
bold 176
fontsize method 181
for loops
continuation of 78
syntax of 82
termination of 77
for statement 82
for...in statement 83
FORM HTML tag 372
Form object 372
elements array 376
form property 383, 388, 397, 405, 412, 417, 425, 432, 442, 450, 458
forms
checkboxes 446
defining 372
element focus 319, 392, 401, 421, 424, 428, 435, 444, 463
element names 307, 378, 390, 399, 450
elements array 376
ENCTYPE attribute 377
Form object 372
and LiveWire xliii
MIME encoding 377
submit buttons 423
submitting 423
Forward button 325
forward method 325, 366
Frame object 344
frames
Frame object 344
top 285, 315
ftp: (URL语法) 346
Function object 126
specifying arguments for 128
specifying event handler with 129
as variable value 127
function statement 83
functions 141-??
addClient 669
arguments array 130
blob 671
callC 672
caller property 132
calling external 672
debug 673
escape 674
flush 677
Function object 126
isNAN 680
number of arguments 98, 173, 363, 377
parseFloat 627, 681
parseInt 627, 682
redirect 684
registerCFunction 685
return values of 87
unescape 691
as variable value 127
write 693

G

getDate method 115
getDay method 116
getHours method 116
getLength method 647
getMember method (LiveConnect) 698
getMinutes method 117
getMonth method 117
getOptionValue property 678
getPeer method (LiveConnect) 702
getPosition method 648
getSeconds method 118
getSelection method 242
getSlot method (LiveConnect) 698
getTime method 118
getTimezoneOffset method 119
getWindow method (LiveConnect) 702
getWindow static method (LiveConnect) 698
getYear method 119
Go menu 361
go method 366
gopher: (URL语法) 346

H

handleEvent method 242, 260, 275, 326, 379, 393, 402, 409, 415, 422, 429, 436, 446, 453, 463
handling specific events 242, 260, 275, 326, 379, 393, 402, 409, 415, 422, 429, 436, 446, 453, 463
height property 271
Hidden object 382
history list
next URL in 325
history object 361
current property 363
next property 364
previous property 364
home method 327
host property 633
hostname 688
hostname property 256, 351, 634
href property 256, 352
hspace property 272
HTML
generated 247
generating 668
and Livewire xliii
HTML tags
A 277
APPLET 276
AREA 277
BIG 175
BLINK 175
BOLD 176
FORM 372
IMG 612
INPUT 423, 446
MAP 277
HTTP method 687
HTTP protocol level 688
HTTP user 687
http: (URL语法) 346
HTTPS CGI variable 687
HTTPS_KEYSIZE CGI variable 687
HTTPS_SECRETKEYSIZE CGI variable 687

I

if...else statement 84
Image object 264
images
and animation 266
Area object 249
border 270
caching 266
preloading 266
size of 265
source 285
imageX property 621, 622
imageY property 622
IMG HTML tag 612
increment operator 62
indexOf method 183
init method (LiveConnect) 703
INPUT HTML tag 423, 446
inputName property 623
insertRow method
of Cursor objects 595
ip property 623
isActive method (LiveConnect) 703
isNaN function 680
italics method 184

J

javaEnabled method 480
JavaScript
debugging 667
LiveWire 50-52
Navigator 49-50
javascript: (URL语法) 346, 347
join method 100
JSException class 699
JSException constructor (LiveConnect) 700
JSObject class 695

L

lastIndexOf method 185
lastModified property 234
Layer object 277
layers 277
left shift operator 65
link method 186
Link object 249
linkColor property 236
links
anchors for 174
and areas 277
for BLOb data 611, 613
defining 277
and images 277
Link object 249
with no destination 73
lists, selection 453
LiveConnect
packages 695-703
LiveWire
background for using xliii
LN10 property 138
LN2 property 139
load event 515
location object 344
location property 239
log method 148
LOG10E property 139
LOG2E property 140
logarithms
base of natural 138, 146
natural logarithm of 10 138
logical operators
overview 66
short-circuit evaluation 67
loops
continuation of 78
for 82
termination of 77
while 89
lowercase 172, 200
lowsrc property 272

M

mailto: (URL语法) 346
MAP HTML tag 277
Math object 136
max method 148
MAX_VALUE property 155
MAYSCRIPT attribute 276
messages
Confirm dialog box 322
Prompt dialog box 333
method property 378, 624
methods 141-??
MIME encoding 377
MIME types
configured plug-in for 484
plug-ins supported 486
MimeType object 482
min method 149
MIN_VALUE property 156
modulo function 62
modulus operator 62
mouseout event 519
mouseOver event 520
moveBy method 327
moveTo method 288, 328
multimedia
and blobLink 613

N

name property 272, 283, 307, 378, 384, 390, 399, 406, 412, 419, 426, 432, 442, 450, 459, 489
NaN property 156
natural logarithms
base of 138
e 138
e raised to a power 146
of 10 138
Navigator
about: (URL语法) 347
code name of 474
and JavaScript 49, 50
name of 475
navigator object 473
NEGATIVE_INFINITY property 157
netscape.javascript.JSException class 699
netscape.javascript.JSObject class 695
netscape.javascript.Plugin class 701
new operator 69
news: (URL语法) 346
next method
of Cursor objects 597, 609
of ResultSet objects 597, 609
next property 364
Number object 154
numbers
cosine of 146
greater of two 148
identifying 668
Number object 154
obtaining integer 145
parsing from strings 681
square root 152

O

Objects
Blob 610
objects 141-??
creating new types 69
establishing default 90
focus 319, 392, 401, 421, 424, 428, 435, 444, 463
specifying names in event handlers 321
onAbort event handler 499
onLoad event handler 515
onMouseOut event handler 519
onMouseOver event handler 520
onReset event handler 523
onSelect event handler 525
onSubmit event handler 526
onUnload event handler 527
open method 649
document object 242
window object 328
opener property 307
operators
arithmetic 62-63
assignment 60
bitwise 63-65
comparison 61
logical 66
special 68
string 67
outParamCount method
of StoredProc objects 602
outParameters method
of StoredProc objects 602, 604
output buffer
flushing 667

P

packages 695-703
parent property 310
parse method 120
parseFloat function 627, 681
parseInt function 627, 682
Password object 403
default value 388, 397, 405
PATH_INFO CGI variable 687
PATH_TRANSLATED CGI variable 687
pathname property 257, 353
PI property 140
Plugin class 701
Plugin constructor (LiveConnect) 703
Plugin object 486
plug-ins
defined 486
determining installed 487
port property 257, 354, 634
POSITIVE_INFINITY property 158
pow method 150
previous property 364
printing generated HTML 247
project object 629
prompt method 333
Properties
of Cursor objects 590
properties 141-??
preserving client values 669
protocol property 258, 355
request object 624
server object 635
prototype property 99, 112, 115, 158, 162, 173, 273, 533, 555, 571, 592, 601, 606, 642, 663

Q

QUERY_STRING CGI variable 687

R

radio buttons
clicking programmatically 428, 435, 445
default selection state 441
Radio object 437
Radio object 437
random method 150
read method 651
readByte method 652
readln method 653
redirect function 684
referrer property 238
refresh method 479
registerCFunction function 685
reload method 358
REMOTE_ADDR CGI variable 687
REMOTE_HOST CGI variable 687
REMOTE_USER CGI variable 687
removeMember method (LiveConnect) 698
replace method 359
request
changing 668
request object 618
REQUEST_METHOD CGI variable 687
reset buttons
clicking programmatically 428, 435, 445
Reset object 429
reset event 523
reset method 380
Reset object 429
resizeBy method 334
resizeTo method 335
response headers
manipulating 667, 670
ResultSet objects 604-??
next method 597, 609
return statement 87
returnValue method
of StoredProc objects 603, 604
reverse method 102
right shift operators 65
round method 151

S

scope
of connection objects 554
SCRIPT_NAME CGI variable 687
scroll method 336
scrollBy method 336
scrollTo method 337
search property 259, 356
security
closing windows 321
select event 525
Select object 453
SELECT tag 668
selectedIndex property 461
selection lists
adding options 465
changing option text 465
default selection state 467
deleting options 460
number of options 98, 173, 363, 377
option text 468
Select object 453
self property 312
server
global data for 632
server JavaScript 50
server object 632
SERVER_NAME CGI variable 688
SERVER_PORT CGI variable 688
SERVER_PROTOCOL CGI variable 688
SERVER_URL CGI variable 688
session key 687
setDate method 121
setHours method 121
setMember method (LiveConnect) 698
setMinutes method 122
setMonth method 122
setPosition method 654
setSeconds method 123
setSlot method (LiveConnect) 699
setTime method 123
setTimeout method 340
setYear method 124
sin method 152
small method 191
sort method 106
special operators 68
typeof 72
void 73
split method 192
SQL xliii
sqrt method 152
SQRT1_2 property 140
SQRT2 property 141
square roots 152
src property 273, 285
ssjs_getCGIVariable function 687
ssjs_getClientID function 688
statements 75-91
syntax conventions 75
status property 313
stop method 342
StoredProc objects ??-603
outParamCount method 602
outParameters method 602, 604
returnValue method 603, 604
storedProcArgs method
of DbPool objects 551, 567
strike method 195
String object 170
string operators 67
strings
blinking 175
bold 176
character position within 171, 177, 183
converting from bytes 642
converting from date 125
converting to floating point 681
creating from arrays 100
defining 170
fontsize of 175
length of 98, 173, 363, 377
lowercase 172, 200
parsing 668
splitting into arrays 192
String object 170
stringToByte method 655
sub method 195
submit buttons
clicking programmatically 428, 435, 445
defining 423
Submit object 423
submit event 526
submit method 381
Submit object 423
substring method 197
suffixes property 485
sup method 199
syntax conventions 75

T

tan method 153
target property 259, 379
TCP port 688
Text object 386
default value 388, 397, 405
Textarea object 394
default value 388, 397, 405
this keyword 72
this.form 383, 388, 397, 405, 412, 417, 425, 432, 442, 450, 458
timeouts
canceling 320
times
Date object 113
defining 113
minutes 117
title property 239
toGMTString method 124
toLocaleString method 125
toLowerCase method 200
top property 285, 315
toString method 109, 112, 135, 159, 164, 552, 568, 587
built-in 164
user-defined 165
toString method (LiveConnect) 699
toUpperCase method 200
Trace facility 673
transactions
committing 537, 557
overview 532
rolling back 537, 557
scope of 532, 533, 535, 548, 572, 573, 584
trigonometric methods
cos 146
typeof operator 72

U

unary negation 63
unescape function 691
unique identifier 668, 688
unload event 527
updateRow method
of Cursor objects 598
URL
redirecting to 668
URLs 688
adding information to 667
anchor name in 254
conventions used xlv
current 344
escaping characters in 667
examples of common 346
history list 361
next 325
syntax of 346
user interaction
applets 276
area objects 277
checkboxes 446
Confirm dialog box 322
image objects 277
link objects 277
Prompt dialog box 333
submit buttons 423
userAgent property 479
UTC method 126

V

valueOf method 167
var statement 88
variables
declaring 88
initializing 88
syntax for declaring 88
view-source: (URL语法) 346
vlinkColor property 240
void function 251, 347
void operator 73
vspace property 275

W

while loops
continuation of 78
syntax of 89
termination of 77
while statement 89
width property 275
window object 294
windows
closed 301
closing 321
name of 307, 378, 390, 399, 450
top 285, 315
window object 294
with statement 90
write function 693
and flush 677
write method 246
generated HTML 247
writeByte method 657
writeln method 249, 658


【上一章】 【目录】 【这是索引】

回页面顶部回页面顶部