Table of Contents | Previous
Symbols
- - (bitwise NOT) operator 52
- - (unary negation) operator 51
- -- (decrement) operator 51
- ! (logical NOT) operator 54
- != (not equal) operator 50
- !== (strict not equal) operator 50
- % (modulus) operator 51
- %= operator 49
- && (logical AND) operator 54
- & (bitwise AND) operator 51
- &= operator 49
- */ comment 90
- *= operator 49
- + (string concatenation) operator 55
- ++ (increment) operator 51
- += (string concatenation) operator 55
- += operator 49
- /* comment 90
- // comment 90, 150
- /= operator 49
- < (less than) operator 50
- << (left shift) operator 52, 53
- <<= operator 49
- <= (less than or equal) operator 50
- == (equal) operator 50
- === (strict equal) operator 50
- -= operator 49
- > (greater than) operator 50
- >= (greater than or equal) operator 50
- >> (sign-propagating right shift) operator 52, 53
- >>= operator 49
- >>> (zero-fill right shift) operator 52, 53
- >>>= operator 49
- ?: (conditional) operator 56
- ^ (bitwise XOR) operator 52
- ^= operator 49
- | (bitwise OR) operator 51
- |= operator 49
- || (logical OR) operator 54
- (comma) operator 56
A
- accumulator
- See tainting
- A HTML tag 194
- alert method 159, 175
- AND (&&) logical operator 54
- AND (&) bitwise operator 51
- applets
- controlling with LiveConnect 246
- example of 247, 248
- flashing text example 248
- Hello World example 247, 255
- referencing 246
- ARCHIVE attribute 218
- arguments array 93
- arithmetic operators 50
- % (modulus) 51
- -- (decrement) 51
- - (unary negation) 51
- ++ (increment) 51
- Array object
- creating 108
- overview 107
- arrays
- See also the individual arrays
- associative 100
- defined 107
- deleting elements 56
- indexing 109, 183
- Java 245
- list of predefined 182
- literals 37
- populating 108
- predefined 182
- referring to elements 109, 183
- regular expressions and 110
- two-dimensional 110
- undefined elements 35
- ASCII
- glossary entry 293
- Unicode and 42
- assignment operators 49
- %= 49
- &= 49
- *= 49
- += 49
- /= 49
- <<= 49
- -= 49
- >>= 49
- >>>= 49
- ^= 49
- |= 49
- defined 47
B
- bitwise operators 51
- & (AND) 51
- - (NOT) 52
- << (left shift) 52, 53
- >> (sign-propagating right shift) 52, 53
- >>> (zero-fill right shift) 52, 53
- ^ (XOR) 52
- | (OR) 51
- logical 52
- shift 53
- BLOb, glossary entry 293
- blur method 175
- Boolean literals 38
- Boolean object 111
- conditional tests and 38, 80
- Boolean type conversions (LiveConnect) 258
- booleanValue method 265
- break statement 86
- browser, hiding scripts from 150
- buttons, submit 167
C
- captureEvents method 161
- capturing events 161
- case sensitivity 35, 147
- object names 100
- property names 100
- regular expressions and 75
- case statement
- See switch statement
- CGI, glossary entry 293
- CGI programs
- and image maps 199
- submitting forms to 167
- validating form input for 165
- char arguments 246
- class-based languages, defined 122
- classes
- defining 122
- Java 245
- LiveConnect 250, 251
- client
- glossary entry 293
- client-side JavaScript 20, 22
- glossary entry 293
- illustrated 22
- objects 169-183
- overview 22
- close method 175
- window object 186
- comma () operator 56
- commas, in cookies 201
- comments 150
- comments, types of 90
- comment statement 90
- comparison operators 49
- != (not equal) 50
- !== (strict not equal) 50
- < (less than) 50
- <= (less than or equal) 50
- == (equal) 50
- === (strict equal) 50
- > (greater than) 50
- >= (greater than or equal) 50
- compute function 160
- conditional (?:) operator 56
- conditional expressions 56
- conditional statements 80-82
- if...else 80
- switch 81
- conditional tests, Boolean objects and 38, 80
- confirm method 159, 175
- console, JavaScript 289
- constructor functions 102
- global information in 140
- initializing property values with 131
- containership
- specifying default object 89
- with statement and 89
- continue statement 87
- cookies
- defined 200
- example of use 203
- glossary entry 293
- implementation of 275-280
- with JavaScript 202
- limitations for 201
- using 200
- CORBA, glossary entry 293
- core JavaScript 21
- core JavaScript, glossary entry 293
D
- data tainting
- See tainting
- data types
- Boolean conversions 258
- converting 34
- converting with LiveConnect 257-265
- and Date object 34
- JavaArray conversions 261
- JavaClass conversions 262
- JavaObject conversions 261
- in JavaScript 26, 33
- JavaScript to Java conversion 257
- Java to JavaScript conversion 264
- null conversions 260
- number conversions 258
- other conversions 263
- string conversions 259
- undefined conversions 260
- Date object
- creating 111
- overview 111
- dates
- cookie expiration 201
- Debugger 27
- decrement (--) operator 51
- default objects, specifying 89
- defaultStatus property 200
- delete operator 56, 107
- deleting
- array elements 56
- objects 56, 107
- properties 56
- deprecate, glossary entry 293
- dialog boxes
- Alert 175
- Confirm 159, 175
- Prompt 175
- directories
- conventions used 18
- do...while statement 84
- document conventions 17
- document object 171
- See also documents
- described 176
- example of properties 171-173
- documents
- See also windows
- document object 176
E
- ECMA, glossary entry 293
- ECMAScript, glossary entry 294
- ECMA specification 28
- JavaScript documentation and 30
- JavaScript versions and 29
- terminology 30
- elements array 177
- elements property
- See elements array
- else statement
- See if...else statement
- end_time method (LiveAudio) 268
- entities 152
- error messages
- displaying to users 289
- escape function 98, 201, 202
- escaping characters 42
- Unicode 44
- eval function 95, 159
- event handlers
- See also the individual event handlers
- case sensitivity 160
- defining 155, 157
- defining functions for 158
- example of use 158-160
- list of 156
- quotation marks for 153
- referring to windows 193
- resetting 160
- syntax for 157
- validating form input with 165
- event object 161
- events 155-168
- capturing 161
- case sensitivity 160
- defined 155
- list of 156
- exceptions
- handling in Java 252
- exec method 70
- expressions
- See also regular expressions
- conditional 56
- in HTML attributes 152
- overview 47
- that return no value 60
- types of 48
- external functions, glossary entry 294
F
- fade_from_to method (LiveAudio) 268
- fade_to method (LiveAudio) 268
- flashing text applet example 248
- floating-point literals 39
- floatValue method 265
- focus method 175
- for...in statement 88, 100
- for loops
- continuation of 87
- sequence of execution 83
- termination of 86
- form elements
- updating 182
- updating dynamically 174
- FORM HTML tag 171, 194
- Form object
- See also forms
- described 177
- elements array 177
- forms
- elements array 177
- Form object 177
- forms array 177
- referring to windows in submit 194
- validating input 165
- forms array 177
- forms property
- See forms array
- for statement 83
- FRAME HTML tag 175
- Frame object
- See also frames
- described 175-176
- frames
- closing 186
- creating 188
- defined 187
- example of creation 191-192
- figure of 187
- Frame object 175-176
- frames array 189, 190
- hierarchy of 188
- navigating 191
- referring to 191, 192-195
- updating 190
- frames array 189, 190
- FRAMESET HTML tag 188
- frames property
- See frames array
- function keyword 91
- Function object 114
- functions 91-98
- arguments array 93
- calling 92
- defining 91
- examples of 166
- Function object 114
- importing and exporting in signed scripts 226
- predefined 94-98
- recursive 93
- using built-in 94-98
- using validation 167
G
- getDay method 112
- getHours method 114
- getMember method 252
- getMinutes method 114
- getSeconds method 114
- getTime method 113
- GetVolume method (LiveAudio) 268
- global object 30
- go method 178
H
- handleEvent method 161
- Hello World applet example 247, 255
- history list 178
- history object 171
- described 178
- HREF attribute 199
- HTML
- embedding JavaScript in 147-154
- glossary entry 294
- layout 173-175
- HTML tags
- A 194
- FORM 171, 194
- FRAME 175
- FRAMESET 188
- IMG 199
- MAP 198
- NOSCRIPT 154
- PRE 180
- SCRIPT 147
- TITLE 172
- HTTP
- glossary entry 294
- hypertext
- See links
I
- ID attribute 219
- identity taint code 236
- if...else statement 80
- image maps
- client-side 198
- server-side 199
- IMG HTML tag 199
- increment (++) operator 51
- inheritance
- class-based languages and 123
- multiple 142
- property 137
- initializers for objects 101
- integers, in JavaScript 39
- international characters 225
- internationalization 42
- IP address, glossary entry 294
- isFinite function 95
- ISMAP attribute 199
- isNaN function 96
- IsPaused method (LiveAudio) 268
- IsPlaying method (LiveAudio) 268
- IsReady method (LiveAudio) 268
J
- Java
- See also LiveConnect
- accessing JavaScript 250
- accessing with LiveConnect 243
- applets and same origin policy 210
- arrays in JavaScript 245
- calling from JavaScript 243
- classes 245
- communication with JavaScript 241-265
- compared to JavaScript 26, 121-143
- getting JavaScript window handle 254
- to JavaScript communication 250
- JavaScript exceptions and 252
- methods requiring char arguments 246
- objects, naming in JavaScript 244
- object wrappers 243
- packages 245
- JavaArray object 243, 245
- JavaArray type conversions 261
- JavaClass object 243, 245
- JavaClass type conversions (LiveConnect) 262
- JavaObject object 243, 244
- JavaObject type conversions 261
- java package 244
- JavaPackage object 243, 245
- JavaScript
- accessing from Java 250
- background for using 15
- case sensitivity 147
- client-side 22
- communication with Java 241-265
- compared to Java 26, 121-143
- components illustrated 20
- core 21
- differences between server and client 20
- displaying errors 289
- ECMA specification and 28
- embedding in HTML 147-154
- entities 152
- external file of 151
- and HTML layout 173-175
- to Java Communication 243
- Navigator 22-23
- object wrappers 265
- overview 20
- right-hand evaluation 152
- server-side 23-25
- special characters 41
- specifying version 148
- URLs 197
- versions and Navigator 16
- JavaScript console 289
- glossary entry 294
- JSException class 250, 252
- JSObject, accessing JavaScript with 251
- JSObject class 250
L
- labeled statements
- with break 86
- with continue 87
- label statement 86
- language, specifying 148
- LANGUAGE attribute 148
- layers
- same origin policy and 210
- unsigned 225
- layout, HTML 173-175
- left shift (<<) operator 52, 53
- length property 118
- links
- creating 194
- image maps 199
- referring to windows 194
- with no destination 60
- literals 37
- Array 37
- Boolean 38
- floating point 39
- integers 39
- object 39
- string 40
- LiveAudio 267-271
- examples 268
- and LiveConnect 267-271
- methods 267
- LiveConnect 241-265
- accessing Java directly 243
- accessing JavaScript objects 254
- accessing JavaScript properties 254
- calling JavaScript methods 255
- calling user-defined functions from Java 256
- controlling Java applets 246
- controlling Java plug-ins 249
- converting data types 257-265
- getting a window handle 254
- glossary entry 294
- Hello World example 255
- Java to JavaScript communication 250
- and LiveAudio 267-271
- objects 243
- LiveWire applications, validating form input for 165
- location object 171
- described 177
- location property 190
- logical operators 53
- ! (NOT) 54
- && (AND) 54
- || (OR) 54
- short-circuit evaluation 55
- loops
- continuation of 87
- for...in 88
- termination of 86
- loop statements 82-88
- break 86
- continue 87
- do...while 84
- for 83
- label 86
- while 85
- lowercase 35, 147
M
- mail filters 281-287
- creating 281
- debugging 285
- example of 286
- message object reference 283
- news filters 283
- MAP HTML tag 198
- matching patterns
- See regular expressions
- match method 70
- Math object 116
- messages
- Alert dialog box 175
- Confirm dialog box 175
- Prompt dialog box 175
- status bar 200
- METHOD attribute 173
- methods
- defined 92
- defining 105
- referring to windows 193
- static 295
- MIME, glossary entry 294
- MIME types
- client capability 204
- mimeTypes array 204
- mimeTypes property
- See mimeTypes array
- modulus (%) operator 51
N
- NAME attribute 172
- Navigator
- and JavaScript 22, 23
- JavaScript versions supported 16
- MIME types supported 204
- objects, hierarchy of 169
- predefined arrays 182
- printing output 180
- Navigator JavaScript
- See client-side JavaScript
- navigator object 170
- See also Navigator
- described 178
- Netscape cookie protocol
- glossary entry 294
- Netscape Messenger 281-287
- netscape package 244
- Netscape packages
- See packages
- new operator 58, 102
- NOSCRIPT HTML tag 154
- NOT (!) logical operator 54
- NOT (-) bitwise operator 52
- NS_ENABLE_TAINT environment variable 235
- null keyword 33
- null value conversions (LiveConnect) 260
- Number function 97
- Number object 117
- numbers
- Number object 117
- parsing from strings 96
- number type conversions (LiveConnect) 258
O
- object manipulation statements
- for...in 88
- this keyword 58
- with statement 89
- object model 121-143
- objects 99-119, 169-183
- adding properties 103, 104
- constructor function for 102
- creating 101-103
- creating new types 58
- deleting 56, 107
- establishing default 89
- event 161
- getting list of properties for 100
- hierarchy of 169
- indexing properties 104
- inheritance 129
- initializers for 101
- iterating properties 100
- JavaScript in Java 251
- literals 39
- LiveConnect 243
- model of 121-143
- overview 100
- predefined 107
- single instances of 101
- onChange event handler 165, 167
- onClick event handler 160, 165, 167, 203
- onMouseOut event handler 200
- onMouseOver event handler 200
- onSubmit event handler 167
- open method 175
- window object 186
- operators
- arithmetic 50
- assignment 49
- bitwise 51
- comparison 49
- defined 47
- logical 53
- order of 60
- overview 48
- precedence 60
- special 55
- string 55
- OR (|) bitwise operator 51
- OR (||) logical operator 54
- output
- displaying 182
- printing 180
P
- packages, Java 245
- Packages object 244
- pages
- objects for 170
- updating 182
- Page Signer 231
- parentheses in regular expressions 70, 73
- parent property 193
- parseFloat function 96
- parseInt function 96
- parse method 113
- pattern matching
- See regular expressions
- pause method (LiveAudio) 267
- PI property 116
- play method (LiveAudio) 267
- Plugin class 250
- Plugin object
- See plug-ins
- plug-ins
- controlling with LiveConnect 249
- determining installed 204
- plugins array 205
- plugins property
- See plugins array
- predefined objects 107
- PRE HTML tag 180
- primitive value, glossary entry 294
- printing generated HTML 180
- prompt method 175
- properties
- See also the individual properties
- adding 104, 130
- class-based languages and 123
- creating 130
- getting list of for an object 100
- indexing 104
- inheritance 129, 137
- initializing with constructors 131
- iterating for an object 100
- naming 173
- overview 100
- referring to 171
- referring to windows 193
- static 295
- prototype-based languages, defined 122
- prototypes 129
Q
- quotation marks
- for string literals 40
- using double 153
- using single 153
R
- reflection 173-175
- RegExp object 63-78
- regular expressions 63-78
- arrays and 110
- creating 64
- defined 63
- examples of 76
- global search with 75
- ignoring case 75
- parentheses in 70, 73
- remembering substrings 70, 73
- special characters in 65, 77
- using 70
- writing patterns 64
- releaseEvents method 161
- replace method 70
- return statement 92
- right-hand evaluation 152
- routeEvent method 161
S
- same origin policy 208-210
- document.domain and 208
- Java applets and 210
- layers and 210
- properties accessed 209
- SCRIPT HTML tag 147
- ARCHIVE attribute 218
- ID attribute 219
- LANGUAGE attribute 148
- SRC attribute 151
- scripts
- example of 150
- hiding 150
- SCRIPT tag 147
- signed 211-233
- tainting 237
- scroll method 175
- search method 70
- security 207-237
- same origin policy 208-210
- signed scripts 211-233
- self property 193
- semicolons
- for event handlers 158
- in cookies 201
- in JavaScript 151
- servers
- accessing 237
- server-side JavaScript 20, 23-25
- glossary entry 295
- illustrated 23, 24
- setDay method 112
- setInterval method 175
- setTime method 113
- setTimeout method 175
- setvol method (LiveAudio) 268
- short-circuit evaluation 55
- signed scripts 211-233
- events from other locations 224
- expanded privileges 220
- identifying 217
- importing and exporting functions 226
- international characters in 225
- JAR file name 218, 219
- Page Signer and 231
- SSL servers and 212
- targets 221
- troubleshooting 232
- unsigned layers 225
- writing 224
- sign-propagating right shift (>>) operator 52, 53
- space characters, in cookies 201
- special characters in regular expressions 65, 77
- special operators 55
- split method 70
- SRC attribute 151
- SSL, unsigned scripts and 212
- start_at_beginning method (LiveAudio) 268
- start_time method (LiveAudio) 268
- statements
- break 86
- conditional 80-82
- continue 87
- do...while 84
- for 83
- for...in 88
- if...else 80
- label 86
- loop 82-88
- object manipulation 88-89
- overview 79-90
- switch 81
- while 85
- static, glossary entry 295
- status bar
- displaying hints 200
- displaying messages 176, 200
- status property 176, 200
- stop_at_end method (LiveAudio) 268
- StopAll method (LiveAudio) 268
- stop method (LiveAudio) 267
- String function 97
- string literals 40
- Unicode in 43
- String object
- overview 118
- regular expressions and 70
- strings
- changing order using regular expressions 76
- concatenating 55
- operators for 55
- regular expressions and 63
- searching for patterns 63
- type conversions (LiveConnect) 259
- subclasses 123
- submit method 167
- subwindows, updating 182
- sun package 244
- switch statement 81
T
- tainting 233-237
- accumulator 236
- conditional statements and 236
- control flow and 236
- enabling 235
- individual data elements 235
- NS_ENABLE_TAINT 235
- overview 234
- properties tainted by default 234
- taint accumulator 236
- taint code 236
- untainting data elements 235
- TARGET attribute 194
- test method 70
- this keyword 102, 105, 158, 167
- described 58
- for object references 106
- TITLE HTML tag 172
- toGMTString method 201
- top property 193
- toString method 265
- typeof operator 59
U
- unary negation (-) operator 51
- undefined property 34
- undefined value 35
- conversions (LiveConnect) 260
- unescape function 98, 201, 203
- Unicode 42-45
- described 42
- escape sequences 44
- string literals and 43
- Unicode Consortium 45
- values for special characters 44
- uppercase 35, 147
- URLs
- conventions used 18
- glossary entry 295
- javascript: 197
V
- variables
- declaring 35
- in JavaScript 35
- naming 35
- scope of 36
- undefined 35
- var statement 35
- versions of JavaScript 16
- Visual JavaScript 28
- void operator 60
W
- while loops
- continuation of 87
- termination of 86
- while statement 85
- window object 170
- See also windows
- described 175-176
- methods of 175
- windows
- See also documents
- closing 186
- giving focus to 195
- handles for 254
- naming 186, 192
- navigating among 195
- opening 186
- overview 185
- referring to 192-195
- taint accumulator 236
- window object 175-176
- with statement 117
- described 89
- wrappers
- for Java objects 243
- for JavaScript objects 265
- writeln method 176, 180
- write method 176
- using 179
- WWW, glossary entry 295
X
- XOR (^) operator 52
Z
- zero-fill right shift (>>>) operator 52, 53
Table of Contents | Previous
Last Updated: 11/06/98 11:04:58
Copyright © 1998
Netscape Communications Corporation