JavaScript: The Complete Reference, Second Edition

F

favlets, Web browsers, 19

feature parameter, Window object, 354 “358

fieldset object, HTMLFieldSetElement, 818

fieldset, forms, 443

<fieldset>, 443, 818

FIFO (first-in first out), 165

file object, HTMLInputElement, 818 “819

file upload fields, forms, 436

file upload object, HTMLInputElement, 818 “819

FileSystemObject

ActiveX, 656 “657

HTA and, 659

overview of, 819

filters, CSS, 654 “655

fireEvent( ) method, 329

first-in first out (FIFO), 165

flags, regular expressions, 749

floating-point numbers , 49, 52

flow control

labels and, 106 “108

statements, 36 “37, 97

syntax, 744

focus events, 426

focus( ) method, Document object, 362, 456

font object, HTMLFontElement, 819 “820

<font>, 819

for loops

overview of, 37 “38

semicolon placement and, 105

syntax, 104 “105, 747

for...in statements, 109 “110

for/in loops

iterating elements of associative

arrays, 150

iterating object properties, 138 “141

overview of, 37

syntax of, 747

form fields, 421 “444

accessing, 419 “421

buttons , 423 “426

checkboxes, 431 “435

disabling, 457 “458

field selection, 456

fieldset, 443

file upload fields, 436

first field focus, 456

hidden fields, 435

input element properties, 421 “423

label element, 442 “443

legend, 443 “444

radio buttons, 431 “435

select menus , 437 “442

text fields, 426 “431

form object, HTMLFormElement, 820

Form object, HTMLFormElement

elements collection, 393 “394

overview of, 820

properties, 417 “419

form validation, 444 “455

abstracting , 446 “449

best practices, 454 “455

defined, 417

drop-in, 449 “451

keyboard masking, 453 “454

need for, 417

onchange event handlers, 452 “453

overview of, 444 “446

via hidden fields, 452

<form>

accessing document elements by position, 230

correspondence to Form/form object, 417 “418, 820

Document object and, 393

forms, 417 “461

accessing, 419 “421

disabling fields, 457 “458

dynamic, 458 “461

first field focus of, 456

Form object properties, 417 “419

input. see <input>

labels and field selection, 456

need for form validation, 417

status messages, 456, 457

forms[ ] collection, 392 “393, 419

frame busting, 378

Frame object, browser objects, 822

frame object, HTMLFrameElement, 821

<frame>, 375 “376, 821

communication with, 584

correspondence to iframe object, 828 “829

same-origin policy and, 681

two-way remote communication with, 595 “597

frames , 371 “381

building, 378 “379

busting, 378

inline, 375 “376

loading, 377

overview of, 371 “375

relationships, 374

state management with, 379 “381

frameSet object, HTMLFrameSetElement, 822

<frameset>, 822

full-screen windows , Window object extensions, 383 “384

function keyword, 39, 111

function literals, 122 “124, 738

Function object, built-in objects, 121 “122, 823 “824

functions, 111 “132

anonymous, 124

best practices for use of, 128 “131

defining, 111

function literals, 122 “124

global and local variables and, 117 “119

globally available, 179

invoking, 63

local, 120 “121

mask outs and, 119 “120

as objects, 121 “122

overview of, 39

parameter passing, 112 “113

parameter passing, advanced, 125 “127

passing composite types by reference, 115 “116

passing objects to, 143 “144

passing primitive types by value, 114 “115

recursive, 127 “128

reference types and, 116 “117

return statements, 114

static variables, 124 “125

syntax, 745

variable scope and, 70 “72

Категории