1. Trang chủ
  2. » Công Nghệ Thông Tin

PURE JavaScript Second Edition pot

2,2K 667 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Pure JavaScript Second Edition
Tác giả R. Allen Wyke, Jason D. Gilliam, Charlton Ting, Sean Michaels
Người hướng dẫn Shelley Johnston Markanday, Rhonda Tinch-Mize, Sandra Henselmeier, Jonathan Steever, Charlotte Clapp, Elizabeth Finney, Antonio Reitz, Rebecca Martin, Debra Sexton, Andrew Watt, Amy Patton, Dan Scherf, Karen Ruggles, Aren Howell, Ayanna Lacey
Trường học Sams Publishing
Chuyên ngành JavaScript Programming
Thể loại Sách hướng dẫn
Năm xuất bản 2002
Thành phố Indianapolis
Định dạng
Số trang 2.229
Dung lượng 9,46 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permis

Trang 1

201 West 103rd Street, Indianapolis, Indiana 46290

Trang 2

Pure JavaScript, Second Edition

Copyright  2002 by Sams Publishing

All rights reserved No part of this book shall be reproduced, stored in a

retrieval system, or transmitted by any means, electronic, mechanical,

photocopying, recording, or otherwise, without written permission from

the publisher No patent liability is assumed with respect to the use of the

information contained herein Although every precaution has been taken in

the preparation of this book, the publisher and author assume no

responsi-bility for errors or omissions Nor is any liaresponsi-bility assumed for damages

resulting from the use of the information contained herein

International Standard Book Number: 0-672-32141-6

Library of Congress Catalog Card Number: 00-111512

Printed in the United States of America

First Printing: August 2001

Trademarks

All terms mentioned in this book that are known to be trademarks or

ser-vice marks have been appropriately capitalized Sams Publishing cannot

attest to the accuracy of this information Use of a term in this book

should not be regarded as affecting the validity of any trademark or

ser-vice mark

Warning and Disclaimer

Every effort has been made to make this book as complete and as accurate

as possible, but no warranty or fitness is implied The information

pro-vided is on an “as is” basis The author(s) and the publisher shall have

neither liability nor responsibility to any person or entity with respect to

any loss or damages arising from the information contained in this book

or from the use of the CD or programs accompanying it

A CQUISITIONS E DITOR

Shelley Johnston Markanday

Trang 3

Introduction 1

PARTI A PROGRAMMER'S OVERVIEW OF JAVASCRIPT

1 What Is JavaScript to a Programmer? 5

2 Details of the Language 31

PARTII PROGRAMMING INJAVASCRIPT

Trang 4

Contents

PARTI A PROGRAMMER'S OVERVIEW OF JAVASCRIPT

Welcome to JavaScript 6

Object-Based Technology 7

Object-Oriented Programming 8

Object Orientation of JavaScript 10

Object Access 16

Modular Programming 17

Security 18

What Security Measures Are in Place? 18

Data Tainting 20

Signed Scripts 21

Advantages of JavaScript 23

Platform Independence 24

Client-Side and Server-Side Versatility 24

When to Use JavaScript 25

Web Page Enhancements 26

Interactive E-Mail 26

Web-Based Applications 27

Windows Scripting 27

JavaScript Resources 28

General Information 28

Reference 29

Newsgroups 30

Moving On 30

2 D ETAILS OF THE L ANGUAGE 31

Things to Know about JavaScript Syntax 31

The Semicolon 31

Using the <script>Tag 32

Comments 33

Data Types and Variables 33

Numbers 34

Strings 35

Other Data Types 36

What to Know About Variables 36

Arrays 39

Operators 45

Trang 5

Arithmetic 45

String 49

Assignment 50

Logical 54

Comparison 55

Conditional 58

Bitwise 59

Precedence 61

Loops and Conditionals 62

Conditionals 62

Loops 65

Functions 76

Syntax 77

Call By Value Versus Call By Reference 77

Returning Values 79

Functions as Objects 80

Moving On 81

PARTII PROGRAMMING INJAVASCRIPT 3 P ROGRAMMING T ECHNIQUES 85 Pattern Matching 85

Defining the RegExpObject 86

Defining Patterns 86

Testing for Pattern Matches 88

Events and Event Handlers 89

Events 90

Event Handlers 92

Timers 95

Exceptions 97

throw 97

try catch 97

Runtime Errors 99

finally 100

Debugging 101

Microsoft Script Debugger 102

The alert()Method 103

Moving On 106

4 C LIENT -S IDE S CRIPTING 107 Supporting Browsers and Their Issues 108

Netscape Navigator 110

Internet Explorer 111

Opera 114

HotJava 115

Trang 6

Extended Browser Functionality 115

Built-In Functions for Control 116

LiveConnect 120

Form Processing 124

The Forms Array 125

Accessing and Writing Information 128

Form Example 131

Cookie Handling 136

Reading Cookies 138

Writing Cookies 139

Windows in Action 139

The Parent/Child Relationship 139

Creating Windows 141

Limitations 142

Window Example 142

Dynamic Documents 145

The Old Way 146

The New Way 148

Cross Browser DHTML 151

XML-Based User Interface Language (XUL) 154

What Is XUL? 154

File Structure and Syntax 155

XUL and JavaScript 155

XUL Example 155

Moving On 156

5 J AVA S CRIPT ON THE S ERVER -S IDE 157 How Does Server-Side Differ from Client-Side? 158

Server-Side Environments 158

Programming Differences 158

Netscape’s Server-Side JavaScript 159

Server Support 160

Compiling Your Scripts 160

The Server Side JavaScript Application Manager 161

Microsoft’s ASP Environment 167

Server Support 168

Using the JScript Language 168

Checking Your Environment 169

Uses of Server-Side JavaScript 169

Within Enterprise Server 170

Within IIS 176

Moving On 178

Trang 7

6 W INDOWS S CRIPTING 179

Windows Script Host 179

Architecture 180

Object Model 181

Benefits and Limitations 182

Windows Script Components 182

Objects 182

Methods of Executing Scripts 184

Remote Scripting 187

How to Use Remote Scripting 187

Remote Scripting Example 188

Moving On 189

PARTIII JAVASCRIPTREFERENCE 7 C ORE L ANGUAGE 193 @_alpha 193

@_jscript 194

@_jscript_build 194

@_jscript_version 195

@_mac 196

@_mc680x0 197

@_PowerPC 197

@_win16 198

@_win32 198

@_x86 199

@cc_on 200

@if 200

@set 201

- (Subtraction) 202

- (Unary Negation) 203

(Decrement) 204

! (Logical NOT) 205

!= (Not Equal) 206

!== (Non-Identity) 207

% (Modulus) 208

%= (Modulus Assignment) 209

& (Bitwise AND) 210

&& (Logical AND) 211

&= (Bitwise AND Assignment) 212

* (Multiplication) 213

*= (Multiplication Assignment) 213

, (Comma) 214

/ (Division) 215

/* / (Multi-line Comment) 216

v i i

Trang 8

// (Comment) 216

/= (Division Assignment) 217

?: (Conditional) 218

^ (Bitwise Exclusive OR) 219

^= (Bitwise Exclusive OR Assignment) 220

| (Bitwise OR) 221

|| (Logical OR) 222

|= (Bitwise OR Assignment) 223

~ (Bitwise NOT) 224

+ (Addition) 225

++ (Increment) 226

+= (Addition Assignment) 227

< (Less Than) 228

<< (Shift Left) 229

<<= (Shift Left Assignment) 230

<= (Less Than or Equal) 231

= (Assignment) 232

-= (Subtraction Assignment) 232

== (Equal) 233

=== (Identity) 234

> (Greater Than) 235

>= (Greater Than or Equal) 236

>> (Shift Right with Sign) 237

>>= (Shift Right with Sign Assignment) 238

>>> (Shift Right Zero Fill) 239

>>>= (Shift Right Zero Fill Assignment) 240

abstract 241

ActiveXObject 241

Arguments 243

Arguments.callee 244

Arguments.caller 246

Arguments.length 247

Array 249

Array.concat( ) 251

Array.constructor 253

Array.index 253

Array.input 254

Array.join() 254

Array.lastIndex 255

Array.length 256

Array.pop() 257

Array.prototype 258

Array.push() 259

Array.reverse() 260

Array.shift() 261

Trang 9

Array.slice() 262

Array.sort() 263

Array.splice() 265

Array.toSource() 267

Array.toString() 268

Array.unshift() 269

Array.unwatch() 270

Array.valueOf() 271

Array.watch() 271

Automation 272

boolean 272

Boolean 273

Boolean.constructor 275

Boolean.prototype 275

Boolean.toSource() 276

Boolean.toString() 277

Boolean.unwatch() 278

Boolean.valueOf() 279

Boolean.watch() 279

break 280

byte 281

case 282

char 282

class 282

const 283

continue 283

Date 285

Date.constructor 289

Date.getDate() 289

Date.getDay() 290

Date.getFullYear() 291

Date.getHours() 292

Date.getMilliseconds() 292

Date.getMinutes() 293

Date.getMonth() 294

Date.getSeconds() 295

Date.getTime() 296

Date.getTimezoneOffset() 297

Date.getUTCDate() 298

Date.getUTCDay() 298

Date.getUTCFullYear() 300

Date.getUTCHours() 300

Date.getUTCMilliseconds() 301

Date.getUTCMinutes() 301

Date.getUTCMonth() 302

i x

Trang 10

Date.getUTCSeconds() 304

Date.getVarDate() 304

Date.getYear() 305

Date.parse() 306

Date.prototype 307

Date.setDate() 308

Date.setFullYear() 309

Date.setHours() 310

Date.setMilliseconds() 310

Date.setMinutes() 311

Date.setMonth() 312

Date.setSeconds() 313

Date.setTime() 314

Date.setUTCDate() 314

Date.setUTCFullYear() 315

Date.setUTCHours() 316

Date.setUTCMilliseconds() 317

Date.setUTCMinutes() 318

Date.setUTCMonth() 318

Date.setUTCSeconds() 319

Date.setYear() 320

Date.toGMTString() 321

Date.toLocaleString() 322

Date.toSource() 322

Date.toString() 323

Date.toUTCString() 324

Date.unwatch() 325

Date.UTC() 326

Date.valueOf() 327

Date.watch 328

debugger 328

decodeURI() 329

decodeURIComponent() 330

default 331

delete 331

do 332

do while 332

double 333

else 334

encodeURI() 334

encodeURIComponent() 335

enum 336

Enumerator 336

Enumerator.atEnd() 337

Enumerator.item() 338

Trang 11

Enumerator.moveNext() 340

Error 341

Error.description 342

Error.message 343

Error.name 343

Error.number 344

escape() 345

eval() 346

export 347

extends 348

false 349

final 349

float 349

for 350

for in 351

function 352

Function() 352

Function.apply() 353

Function.arguments 354

Function.arity 355

Function.call() 356

Function.callee 357

Function.caller 358

Function.constructor 359

Function.length 360

Function.prototype 360

Function.toSource() 361

Function.toString() 362

Function.valueOf() 363

GetObject 364

Global 365

Global.decodeURI() 366

Global.decodeURIComponent() 367

Global.encodeURI() 368

Global.encodeURIComponent() 369

Global.escape() 370

Global.eval() 371

Global.Infinity 373

Global.isFinite() 374

Global.isNaN() 375

Global.NaN 376

Global.Number() 376

Global.parseFloat() 377

Global.parseInt() 378

x i

Trang 12

Global.unescape() 380

Global.undefined 380

goto 381

if 381

if else 382

implements 383

import 383

in 384

Infinity 385

instanceof 386

int 387

interface 387

isFinite() 387

isNaN() 388

java 389

javaArray 390

javaArray.length 391

javaArray.toString 392

javaClass 392

javaObject 393

javaPackage 394

JSException 395

JSException.getWrappedException() 396

JSObject 396

JSObject.call() 398

JSObject.equals() 399

JSObject.eval() 400

JSObject.getMember() 401

JSObject.getSlot() 403

JSObject.getWindow() 403

JSObject.removeMember() 404

JSObject.setMember() 405

JSObject.setSlot() 405

JSObject.toString() 406

label 406

long 407

Math() 408

Math.abs() 409

Math.acos() 410

Math.asin() 411

Math.atan() 412

Math.atan2() 413

Math.ceil() 414

Math.cos() 415

Trang 13

Math.E 416

Math.exp() 417

Math.floor() 418

Math.LN10 419

Math.LN2 420

Math.log() 420

Math.LOG10E 421

Math.LOG2E 422

Math.max() 423

Math.min() 424

Math.PI 425

Math.pow() 426

Math.random() 427

Math.round() 428

Math.sin() 429

Math.sqrt() 430

Math.SQRT1_2 431

Math.SQRT2 432

Math.tan() 432

Math.toSource() 433

Math.toString() 434

Math.unwatch() 435

Math.watch() 435

NaN 436

native 436

netscape 437

new 437

null 438

Number() 438

Number() 439

Number.constructor 440

Number.MAX_VALUE 441

Number.MIN_VALUE 442

Number.NaN 443

Number.NEGATIVE_INFINITY 443

Number.POSITIVE_INFINITY 444

Number.prototype 445

Number.toExponential() 446

Number.toFixed() 447

Number.toLocaleString() 447

Number.toPrecision() 448

Number.toSource() 448

Number.toString() 449

Number.unwatch() 449

Number.valueOf() 450

x i i i

Trang 14

Number.watch() 451

Object() 452

Object.constructor 453

Object.eval() 454

Object.prototype 455

Object.toSource() 455

Object.toString() 456

Object.unwatch() 457

Object.valueOf() 458

Object.watch() 458

package 459

Packages 460

Packages.className 461

Packages.java 461

Packages.netscape 462

Packages.sun 463

parseFloat() 464

parseInt() 465

private 465

protected 466

public 466

RegExp() 466

RegExp,$* 469

RegExp.$& 470

RegExp,$_ 470

RegExp.$` 471

RegExp.$’ 472

RegExp.$+ 473

RegExp.$1,$2, $9 474

RegExp.constructor() 475

RegExp.compile() 476

RegExp.exec() 477

RegExp.global 478

RegExp.ignoreCase 479

RegExp.input 480

RegExp.lastIndex 481

RegExp.lastMatch 481

RegExp.lastParen 482

RegExp.leftContext 483

RegExp.multiline 484

RegExp.prototype 485

RegExp.rightContext 486

RegExp.source 487

RegExp.test() 487

RegExp.toSource() 488

Trang 15

RegExp.toString() 489

RegExp.unwatch() 490

RegExp.valueOf() 491

RegExp.watch() 492

return 493

ScriptEngine 494

ScriptEngineBuildVersion 494

ScriptEngineMajorVersion 495

ScriptEngineMinorVersion 495

short 496

static 496

String (Function) 497

String (Object) 497

String.anchor() 501

String.big() 502

String.blink() 503

String.bold() 503

String.charAt() 504

String.charCodeAt() 505

String.concat() 507

String.constructor 507

String.fixed() 508

String.fontcolor() 509

String.fontsize() 509

String.fromCharCode() 510

String.indexOf() 511

String.italics() 512

String.lastIndexOf() 513

String.length 514

String.link() 515

String.localeCompare() 515

String.match() 516

String.prototype 517

String.replace() 519

String.search() 520

String.slice() 521

String.small() 522

String.split() 522

String.strike() 524

String.sub() 525

String.substr() 526

String.substring() 527

String.sup() 528

String.toLocaleLowerCase() 528

String.toLocaleUpperCase() 529

x v

Trang 16

String.toSource() 531

String.toString() 532

String.toUpperCase() 533

String.unwatch() 533

String.valueOf() 534

String.watch() 535

sun 536

super 537

switch 537

synchronized 539

this 539

throw 541

throws 543

transient 543

true 544

try catch finally 544

typeof 546

undefined 548

unescape() 548

var 549

VBArray 551

VBArray.dimensions() 552

VBArray.getItem() 553

VBArray.lbound() 555

VBArray.toArray() 556

VBArray.ubound() 557

void 559

volatile 559

while 560

with 561

8 C LIENT -S IDE 563 Anchor 564

Anchor.name 566

Anchor.text 567

Anchor.unwatch() 568

Anchor.watch() 569

Anchor.x 570

Anchor.y 571

Applet 572

Area 573

Area.handleEvent() 576

Area.hash 578

Area.host 580

Trang 17

Area.hostname 582

Area.href 583

Area.onDblClick 584

Area.onMouseOut 585

Area.onMouseOver 586

Area.pathname 587

Area.port 588

Area.protocol 589

Area.search 590

Area.target 591

Area.unwatch() 594

Area.watch() 596

Button 597

Button.blur() 599

Button.click() 600

Button.focus() 601

Button.form 602

Button.handleEvent() 603

Button.name 605

Button.onBlur 606

Button.onClick 606

Button.onFocus 607

Button.onMouseDown 608

Button.onMouseUp 608

Button.type 609

Button.unwatch() 610

Button.value 612

Button.watch() 613

Checkbox 614

Checkbox.blur() 617

Checkbox.checked 618

Checkbox.click() 620

Checkbox.defaultChecked 621

Checkbox.focus() 622

Checkbox.form 623

Checkbox.handleEvent() 624

Checkbox.name 626

Checkbox.onBlur 627

Checkbox.onClick 628

Checkbox.onFocus 630

Checkbox.type 631

Checkbox.unwatch() 632

Checkbox.value 634

Checkbox.watch() 635

Document 636

x v i i

Trang 18

document.alinkColor 637

document.all 638

document.all.item() 639

document.all.tags() 640

document.anchors 641

document.anchors.length 642

document.applets 643

document.applets.length 644

document.bgColor 645

document.captureEvents() 646

document.classes 648

document.close() 651

document.contextual() 652

document.cookie 652

document.domain 653

document.embeds 654

document.embeds.length 655

document.fgColor 655

document.formName 656

document.forms 657

document.forms.length 658

document.getSelection() 659

document.handleEvent() 660

document.ids 661

document.images 664

document.images.length 665

document.lastModified 666

document.layers 667

document.layers.length 668

document.linkColor 669

document.links 670

document.links.length 671

document.onClick 672

document.onDblClick 673

document.onKeyDown 674

document.onKeyPress 675

document.onKeyUp 676

document.onLoad 677

document.onMouseDown 677

document.onMouseUp 678

document.onUnLoad 679

document.open() 680

document.plugins 681

document.plugins.length 682

document.referrer 682

Trang 19

document.releaseEvents() 683

document.routeEvent() 685

document.tags 687

document.title 690

document.unwatch() 690

document.URL 692

document.vlinkColor 692

document.watch() 693

document.write() 694

document.writeln() 695

Embed 697

Event 698

event.data 701

event.height 702

event.layerX 703

event.layerY 704

event.modifiers 705

event.pageX 707

event.pageY 708

event.screenX 709

event.screenY 711

event.target 712

event.type 713

event.unwatch() 715

event.watch() 716

event.which 718

event.width 718

Event.ABORT 720

Event.BLUR 721

Event.CHANGE 722

Event.CLICK 723

Event.DBLCLICK 724

Event.DRAGDROP 725

Event.ERROR 726

Event.FOCUS 728

Event.KEYDOWN 729

Event.KEYPRESS 730

Event.KEYUP 731

Event.LOAD 732

Event.MOUSEDOWN 733

Event.MOUSEMOVE 734

Event.MOUSEOUT 735

Event.MOUSEOVER 736

Event.MOUSEUP 737

Event.MOVE 738

x i x

Trang 20

Event.RESIZE 741

Event.SELECT 742

Event.SUBMIT 743

Event.UNLOAD 744

FileUpload 745

FileUpload.blur() 747

FileUpload.focus() 748

FileUpload.form 749

FileUpload.handleEvent() 750

FileUpload.name 752

FileUpload.onBlur 753

FileUpload.onChange 754

FileUpload.onFocus 755

FileUpload.select() 756

FileUpload.type 757

FileUpload.unwatch() 758

FileUpload.value 759

FileUpload.watch() 760

Form 761

Form.action 763

Form.elements 764

Form.elements.length 765

Form.encoding 766

Form.handleEvent() 767

Form.length 768

Form.method 769

Form.name 770

Form.onReset 771

Form.onSubmit 772

Form.reset() 773

Form.submit() 774

Form.target 775

Form.unwatch() 776

Form.watch() 777

Frame 778

Frame.blur() 779

Frame.clearInterval() 780

Frame.clearTimeout() 781

Frame.document 781

Frame.focus() 782

Frame.frames 782

Frame.length 783

Frame.name 784

Frame.onBlur 784

Trang 21

Frame.onFocus 785

Frame.onMove 786

Frame.onResize 786

Frame.parent 787

Frame.print() 787

Frame.self 788

Frame.setInterval() 788

Frame.setTimeout() 789

Frame.top 790

Frame.unwatch() 790

Frame.watch() 791

Frame.window 792

Hidden 793

Hidden.form 794

Hidden.name 795

Hidden.type 795

Hidden.unwatch() 796

Hidden.value 797

Hidden.watch() 798

History 799

History.back() 800

History.current 800

History.forward() 801

History.go() 802

History.length 802

History.next 803

History.previous 804

History.unwatch() 805

History.watch() 806

Image 807

Image.border 809

Image.complete 810

Image.handleEvent() 811

Image.height 811

Image.hspace 812

Image.lowsrc 813

Image.name 814

Image.onAbort 814

Image.onError 815

Image.onKeyDown 815

Image.onKeyPress 816

Image.onKeyUp 816

Image.onLoad 816

Image.src 817

Image.unwatch() 818

x x i

Trang 22

Image.vspace 819Image.watch() 819Image.width 820Layer 821Layer.above 823Layer.background 824Layer.below 825Layer.bgColor 826Layer.captureEvents() 827Layer.clip.bottom 828Layer.clip.height 829Layer.clip.left 830Layer.clip.right 831Layer.clip.top 832Layer.clip.width 833Layer.document 834Layer.handleEvent() 835Layer.left 837Layer.load() 838Layer.moveAbove() 838Layer.moveBelow() 839Layer.moveBy() 840Layer.moveTo() 841Layer.moveToAbsolute() 842Layer.name 843Layer.onBlur 844Layer.onFocus 845Layer.onLoad 846Layer.onMouseOut 847Layer.onMouseOver 848Layer.pageX 849Layer.pageY 850Layer.parentLayer 851Layer.releaseEvents() 852Layer.resizeBy() 853Layer.resizeTo() 854Layer.routeEvent() 855Layer.siblingAbove 856Layer.siblingBelow 857Layer.src 858Layer.top 859Layer.unwatch() 860Layer.visibility 861Layer.watch() 862Layer.zIndex 864

Trang 23

Link 864Link.handleEvent() 866Link.hash 867Link.host 868Link.hostname 869Link.href 870Link.onClick 871Link.onDblClick 871Link.onKeyDown 872Link.onKeyPress 873Link.onKeyUp 874Link.onMouseDown 874Link.onMouseOut 875Link.onMouseOver 876Link.onMouseUp 877Link.pathname 877Link.port 878Link.protocol 879Link.search 880Link.target 881Link.text 882Link.unwatch() 883Link.watch() 884Location 885Location.hash 886Location.host 887Location.hostname 889Location.href 890Location.pathname 891Location.port 892Location.protocol 893Location.reload() 894Location.replace() 895Location.search 895Location.unwatch() 896Location.watch() 898MimeType 899MimeType.description 900MimeType.enabledPlugin 901MimeType.suffixes 901MimeType.type 902MimeType.unwatch() 903MimeType.watch() 903navigator 904navigator.appCodeName 905

x x i i i

Trang 24

navigator.appName 906navigator.appVersion 906navigator.javaEnabled() 907navigator.language 908navigator.mimeTypes 908navigator.platform 909navigator.plugins 910navigator.plugins.refresh() 911navigator.preference() 911navigator.taintEnabled() 912navigator.userAgent 913navigator.unwatch() 914navigator.watch() 914Option 914Option.defaultSelected 916Option.selected 917Option.text 918Option.unwatch() 919Option.value 920Option.watch() 921Password 922Password.blur() 923Password.defaultValue 924Password.focus() 925Password.form 925Password.handleEvent() 926Password.name 927Password.onBlur 928Password.onFocus 929Password.select() 930Password.type 930Password.unwatch() 931Password.value 932Password.watch() 933Plugin 934Plugin.description 935Plugin.filename 935Plugin.length 936Plugin.name 937Plugin.unwatch() 937Plugin.watch() 938Radio 938Radio.blur() 939Radio.checked 940Radio.click() 941

Trang 25

Radio.defaultChecked 942Radio.focus() 943Radio.form 944Radio.handleEvent() 944Radio.name 946Radio.onBlur 946Radio.onClick 947Radio.onFocus() 948Radio.type 949Radio.unwatch() 949Radio.value 950Radio.watch() 951Reset 952Reset.blur() 953Reset.click() 954Reset.focus() 955Reset.form 956Reset.handleEvent() 957Reset.name 958Reset.onBlur 959Reset.onClick 960Reset.onFocus 961Reset.type 962Reset.unwatch() 962Reset.value 964Reset.watch() 965screen 967screen.availHeight 968screen.availLeft 969screen.availTop 969screen.availWidth 970screen.colorDepth 971screen.height 971Screen.pixelDepth 972screen.unwatch() 972screen.watch() 973screen.width 974Select 974Select.blur() 976Select.focus() 978Select.form 979Select.handleEvent() 980Select.length 982Select.name 983Select.onBlur 984

x x v

Trang 26

Select.onChange 985Select.onFocus 986Select.options 987Select.options.length 989Select.options.selectedIndex 989Select.options.value 990Select.selectedIndex 991Select.type 991Select.unwatch() 992Select.watch() 993Style 994Style.align 997Style.backgroundColor 998Style.backgroundImage 999Style.borderBottomWidth 1000Style.borderColor 1001Style.borderLeftWidth 1001Style.borderRightWidth 1002Style.borderStyle 1003Style.borderTopWidth 1004Style.borderWidths() 1004Style.clear 1006Style.color 1007Style.display 1007Style.fontFamily 1008Style.fontSize 1009Style.fontStyle 1010Style.fontWeight 1011Style.lineHeight 1012Style.listStyleType 1013Style.marginBottom 1014Style.marginLeft 1015Style.marginRight 1016Style.margins() 1016Style.marginTop 1018Style.paddingBottom 1018Style.paddingLeft 1019Style.paddingRight 1020Style.paddings() 1021Style.paddingTop 1022Style.textAlign 1023Style.textDecoration 1024Style.textIndent 1024Style.textTransform 1025Style.unwatch() 1026

Trang 27

Style.watch() 1027Style.whiteSpace 1028Style.width 1028Submit 1029Submit.blur() 1031Submit.click() 1032Submit.focus() 1034Submit.form 1034Submit.handleEvent() 1036Submit.name 1037Submit.onBlur 1038Submit.onClick 1039Submit.onFocus 1040Submit.type 1041Submit.unwatch() 1042Submit.value 1043Submit.watch() 1044taint() 1045Text 1046Text.blur() 1048Text.defaultValue 1049Text.focus() 1050Text.form 1051Text.handleEvent() 1052Text.name 1053Text.onBlur 1054Text.onChange 1055Text.onFocus 1056Text.onSelect 1057Text.select() 1058Text.type 1059Text.unwatch() 1060Text.value 1061Text.watch() 1062Textarea 1063Textarea.blur() 1065Textarea.defaultValue 1066Textarea.focus() 1067Textarea.form 1068Textarea.handleEvent() 1070Textarea.name 1071Textarea.onBlur 1072Textarea.onChange 1073Textarea.onFocus 1074Textarea.onKeyDown 1075

x x v i i

Trang 28

Textarea.onKeyPress 1076Textarea.onKeyUp 1077Textarea.onSelect 1078Textarea.select() 1079Textarea.type 1080Textarea.unwatch() 1081Textarea.value 1082Textarea.watch() 1083untaint() 1084Window 1085window.alert() 1090window.atob() 1091window.back() 1092window.blur() 1092window.btoa() 1094window.captureEvents() 1094window.clearInterval() 1096window.clearTimeout() 1098window.close() 1099window.closed 1100window.confirm() 1102window.crypto 1103window.crypto.random() 1104window.crypto.signText() 1104window.defaultStatus 1105window.disableExternalCapture() 1106window.document 1107window.enableExternalCapture() 1110window.find() 1111window.focus() 1112window.forward() 1113window.frames 1114window.frames.length 1115window.handleEvent() 1115window.history 1116window.home() 1118window.innerHeight 1118window.innerWidth 1120window.length 1121window.location 1122window.locationbar 1122window.locationbar.visible 1123window.menubar 1123window.menubar.visible 1124window.moveBy() 1125

Trang 29

window.moveTo() 1126window.name 1127window.offscreenBuffering 1129window.onBlur 1129window.onDragDrop 1130window.onError 1130window.onFocus 1131window.onLoad 1132window.onMove 1132window.onResize 1133window.onUnload 1133window.open() 1134window.opener 1137window.outerHeight 1139window.outerWidth 1140window.pageXOffset 1142window.pageYOffset 1143window.parent 1144window.personalbar 1144window.personalbar.visible 1145window.print() 1146window.prompt() 1147window.releaseEvents() 1148window.resizeBy() 1150window.resizeTo() 1151window.routeEvent() 1152window.screenX 1154window.screenY 1155window.scroll() 1156window.scrollbars 1157window.scrollbars.visible 1158window.scrollBy() 1158window.scrollTo() 1160window.self 1161window.setHotKeys() 1162window.setInterval() 1162window.setResizable() 1164window.setTimeout() 1164window.setZOptions() 1165window.status 1166window.statusbar 1167window.statusbar.visible 1167window.stop() 1168window.toolbar 1169window.toolbar.visible 1169

x x i x

Trang 30

window.top 1170window.unwatch() 1171window.watch() 1172window.window 1173

addClient() 1176addResponseHeader() 1176Application 1177Application.Application_OnEnd 1178Application.Application_OnStart 1179Application.Contents 1179Application.Contents.Remove() 1180Application.Contents.RemoveAll() 1180Application.Lock() 1181Application.StaticObjects 1182Application.Unlock() 1182ASPError 1183ASPError.ASPCode 1184ASPError.ASPDescription 1184ASPError.Category 1185ASPError.Column 1185ASPError.Description 1185ASPError.File 1186ASPError.Line 1186ASPError.Number 1187ASPError.Source 1187blob() (Function) 1188blob (Object) 1189blob.blobImage() 1190blob.blobLink() 1191callC() 1192client 1193client.destroy() 1195client.expiration() 1196client.property 1196client.unwatch() 1197client.watch() 1198Connection 1199Connection.beginTransaction() 1201Connection.commitTransaction() 1202Connection.connected() 1203Connection.cursor() 1204Connection.execute() 1205Connection.majorErrorCode() 1205

Trang 31

Connection.majorErrorMessage() 1206Connection.minorErrorCode() 1207Connection.minorErrorMessage() 1208Connection.prototype 1209Connection.release() 1210Connection.rollbackTransaction() 1211Connection.SQLTable() 1212Connection.storedProc() 1213Connection.toString() 1215Connection.unwatch() 1216Connection.watch() 1218Cursor 1219Cursor.close() 1221Cursor.columnName 1222Cursor.columnName() 1222Cursor.columns() 1224Cursor.deleteRow() 1225Cursor.insertRow() 1226Cursor.next() 1227Cursor.prototype 1228Cursor.unwatch() 1229Cursor.updateRow() 1231Cursor.watch() 1232database 1233database.beginTransaction() 1235database.commitTransaction() 1236database.connect() 1237database.connected() 1239database.cursor() 1240database.disconnect() 1241database.execute() 1242database.majorErrorCode() 1242database.majorErrorMessage() 1243database.minorErrorCode() 1244database.minorErrorMessage() 1245database.prototype 1246database.rollbackTransaction() 1247database.SQLTable() 1248database.storedProc() 1249database.storedProcArgs() 1250database.toString() 1251database.unwatch() 1253database.watch() 1254DbPool 1255DbPool.connect() 1258

x x x i

Trang 32

DbPool.connected() 1260DbPool.connection() 1261DbPool.DbPool() 1262DbPool.disconnect() 1263DbPool.majorErrorCode() 1264DbPool.majorErrorMessage() 1264DbPool.minorErrorCode() 1265DbPool.minorErrorMessage() 1266DbPool.prototype 1267DbPool.storedProcArgs() 1268DbPool.toString() 1269DBPool.unwatch() 1270DBPool.watch() 1272debug() 1273deleteResponseHeader() 1274File() 1274File.byteToString() 1277File.clearError() 1278File.close() 1279File.constructor 1279File.eof() 1280File.error() 1281File.exists() 1282File.flush() 1283File.getLength() 1284File.getPosition() 1284File.open() 1285File.prototype 1286File.read() 1288File.readByte() 1288File.readln() 1289File.setPosition() 1290File.stringToByte() 1291File.unwatch() 1292File.watch() 1294File.write() 1295File.writeByte() 1296File.writeln() 1297flush() 1298getOptionValue() 1299getOptionValueCount() 1300Lock() 1300Lock.constructor 1301Lock.isValid() 1302Lock.lock() 1303

Trang 33

Lock.prototype 1303Lock.unlock() 1305Lock.unwatch() 1305Lock.watch() 1307ObjectContext 1308ObjectContext.OnTransactionAbort 1309ObjectContext.OnTransactionCommit 1310ObjectContext.SetAbort() 1310ObjectContext.SetComplete() 1311project 1312project.lock() 1313project.unlock() 1313project.unwatch() 1314project.watch() 1315redirect() 1316registerCFunction() 1317Request 1318Request.BinaryRead() 1318Request.ClientCertificate 1319Request.Cookies 1321Request.Form 1321Request.Form.Form.Count 1322Request.QueryString 1323Request.QueryString.Count 1323Request.ServerVariables 1324Request.TotalBytes 1326request 1327request.agent 1328request.formKey 1328request.imageX 1329request.imageY 1330request.ip 1331request.method 1331request.protocol 1332request.unwatch() 1333request.watch() 1334Response 1334Response.AddHeader() 1335Response.AppendToLog() 1336Response.BinaryWrite() 1336Response.Buffer 1337Response.CacheControl 1337Response.Charset 1338Response.Clear() 1338Response.ContentType 1339

x x x i i i

Trang 34

Response.Cookies 1339Response.End() 1340Response.Expires 1340Response.ExpiresAbsolute 1341Response.Flush() 1341Response.IsClientConnected 1342Response.PICS 1342Response.Redirect() 1343Response.Status 1343Response.Write() 1344Resultset 1344Resultset.close() 1346Resultset.columnName() 1347Resultset.columns() 1348Resultset.next() 1349Resultset.prototype 1350Resultset.unwatch() 1351Resultset.watch() 1353ScriptingContext 1354SendMail 1354SendMail.Bcc 1357SendMail.Body 1357SendMail.Cc 1358SendMail.constructor 1358SendMail.errorCode() 1359SendMail.errorMessage() 1360SendMail.Errorsto 1361SendMail.From 1361SendMail.Organization 1362SendMail.prototype 1362SendMail.Replyto 1363SendMail.send() 1364SendMail.Smtpserver 1365SendMail.Subject 1365SendMail.To 1366SendMail.unwatch() 1366SendMail.watch() 1367Server 1368Server.CreateObject() 1369Server.Execute() 1369Server.GetLastError() 1370Server.HTMLEncode() 1370Server.MapPath() 1371Server.ScriptTimeout 1371Server.Transfer() 1372

Trang 35

Server.URLEncode() 1372server 1373server.host 1374server.hostname 1374server.lock() 1375server.port 1375server.protocol 1376server.unlock() 1376server.unwatch() 1377server.watch() 1378Session 1378Session.Abandon() 1379Session.CodePage 1380Session.Contents 1381Session.Contents.Remove() 1381Session.Contents.RemoveAll() 1382Session.LCID 1383Session.SessionID 1383Session.Session_OnEnd 1384Session.Session_OnStart 1384Session.StaticObjects 1385Session.Timeout 1385ssjs_generateClientID() 1385ssjs_getCGIVariable() 1386ssjs_getClientID() 1387Stproc 1388Stproc.close() 1389Stproc.outParamCount() 1390Stproc.outParameters() 1391Stproc.prototype 1392Stproc.resultSet() 1393Stproc.returnValue() 1395Stproc.unwatch() 1395Stproc.watch() 1397write() 1398

CD-ROM ONLYCHAPTERS

Attr CD:1403Attr.Name CD:1404Attr.specified CD:1404Attr.value CD:1405Attr.ownerElement CD:1406

x x x v

Trang 36

CDATASection CD:1406CharacterData CD:1407CharacterData.data CD:1408CharacterData.length CD:1408CharacterData.substringData() CD:1409CharacterData.appendData() CD:1409CharacterData.insertData() CD:1410CharacterData.deleteData() CD:1411CharacterData.replaceData() CD:1411Comment CD:1412Document CD:1412Document.createAttribute() CD:1414Document.createAttributeNS() CD:1414Document.createCDATASection() CD:1415Document.createComment() CD:1416Document.createDocumentFragment() CD:1416Document.createElement() CD:1417Document.createElementNS() CD:1417Document.createEntityReference() CD:1418Document.createProcessingInstruction() CD:1419Document.createTextNode() CD:1419Document.doctype CD:1420Document.documentElement CD:1421Document.getElementById() CD:1421Document.getElementsByTagName() CD:1422Document.getElementsByTagNameNS() CD:1422Document.implementation CD:1423Document.importNode() CD:1424DocumentFragment CD:1424DocumentType CD:1425DocumentType.entities CD:1426DocumentType.internalSubset CD:1426DocumentType.name CD:1427DocumentType.notations CD:1427DocumentType.publicId CD:1428DocumentType.systemId CD:1429DOMException CD:1429DOMException.code CD:1430DOMImplementation CD:1431DOMImplementation.createDocument() CD:1432DOMImplementation.createDocumentType() CD:1433DOMImplementation.hasFeature() CD:1433Element CD:1434Element.getAttribute() CD:1435Element.getAttributeNode() CD:1436

Trang 37

Element.getAttributeNodeNS() CD:1436Element.getAttributeNS() CD:1437Element.getElementsByTagName() CD:1438Element.getElementsByTagNameNS() CD:1438Element.hasAttribute() CD:1439Element.hasAttributeNS() CD:1439Element.removeAttribute() CD:1440Element.removeAttributeNode() CD:1440Element.removeAttributeNS() CD:1441Element.setAttribute() CD:1442Element.setAttributeNode() CD:1442Element.setAttributeNodeNS() CD:1443Element.setAttributeNS() CD:1444Element.tagName CD:1444Entity CD:1445Entity.notationName CD:1445Entity.publicId CD:1446Entity.systemId CD:1446EntityReference CD:1447NamedNodeMap CD:1447NamedNodeMap.getNamedItem() CD:1448NamedNodeMap.getNamedItemNS() CD:1449NamedNodeMap.item() CD:1449NamedNodeMap.length CD:1450NamedNodeMap.removeNamedItem() CD:1451NamedNodeMap.removeNamedItemNS() CD:1451NamedNodeMap.setNamedItem() CD:1452NamedNodeMap.setNamedItemNS() CD:1453Node CD:1453Node.attributes CD:1456Node.appendChild() CD:1457Node.childNodes CD:1457Node.cloneNode() CD:1458Node.firstChild CD:1458Node.hasAttributes() CD:1459Node.hasChildNodes() CD:1460Node.insertBefore() CD:1460Node.isSupported() CD:1461Node.lastChild CD:1462Node.localName CD:1462Node.namespaceURI CD:1463Node.nextSibling CD:1463Node.nodeName CD:1464Node.nodeType CD:1465Node.nodeValue CD:1465

x x x v i i

Trang 38

Node.normalize() CD:1466Node.ownerDocument CD:1466Node.parentNode CD:1467Node.prefix CD:1468Node.previousSibling CD:1468Node.removeChild() CD:1469Node.replaceChild() CD:1469Notation CD:1470Notation.publicId CD:1471Notation.systemId CD:1471ProcessingInstruction CD:1472ProcessingInstruction.data CD:1472ProcessingInstruction.target CD:1473Text CD:1474Text.splitText() CD:1474

11 DOM HTML (CD-ROM) 1479

HTMLAnchorElement CD:1480HTMLAnchorElement.accessKey CD:1481HTMLAnchorElement.blur() CD:1482HTMLAnchorElement.charset CD:1482HTMLAnchorElement.coords CD:1483HTMLAnchorElement.focus() CD:1484HTMLAnchorElement.href CD:1484HTMLAnchorElement.hrefLang CD:1485HTMLAnchorElement.name CD:1485HTMLAnchorElement.rel CD:1486HTMLAnchorElement.rev CD:1486HTMLAnchorElement.shape CD:1487HTMLAnchorElement.tabIndex CD:1488HTMLAnchorElement.target CD:1488HTMLAnchorElement.type CD:1489HTMLAppletElement CD:1489HTMLAppletElement.align CD:1490HTMLAppletElement.alt CD:1491HTMLAppletElement.archive CD:1492HTMLAppletElement.code CD:1492HTMLAppletElement.codeBase CD:1493HTMLAppletElement.height CD:1493HTMLAppletElement.hspace CD:1494HTMLAppletElement.name CD:1495HTMLAppletElement.object CD:1495HTMLAppletElement.vspace CD:1496HTMLAppletElement.width CD:1496HTMLAreaElement CD:1497

Trang 39

HTMLAreaElement.accessKey CD:1498HTMLAreaElement.alt CD:1498HTMLAreaElement.coords CD:1499HTMLAreaElement.href CD:1500HTMLAreaElement.noHref CD:1500HTMLAreaElement.shape CD:1501HTMLAreaElement.tabIndex CD:1501HTMLAreaElement.target CD:1502HTMLBaseElement CD:1503HTMLBaseElement.href CD:1503HTMLBaseElement.target CD:1504HTMLBaseFontElement CD:1505HTMLBaseFontElement.color CD:1505HTMLBaseFontElement.face CD:1506HTMLBaseFontElement.size CD:1507HTMLBodyElement CD:1507HTMLBodyElement.aLink CD:1508HTMLBodyElement.background CD:1509HTMLBodyElement.bgColor CD:1509HTMLBodyElement.link CD:1510HTMLBodyElement.text CD:1511HTMLBodyElement.vLink CD:1511HTMLBRElement CD:1512HTMLBRElement.clear CD:1512HTMLButtonElement CD:1513HTMLButtonElement.accessKey CD:1514HTMLButtonElement.disabled CD:1514HTMLButtonElement.form CD:1515HTMLButtonElement.name CD:1516HTMLButtonElement.tabIndex CD:1516HTMLButtonElement.type CD:1517HTMLButtonElement.value CD:1517HTMLCollection CD:1518HTMLCollection.item() CD:1519HTMLCollection.length CD:1520HTMLCollection.namedItem() CD:1520HTMLDirectoryElement CD:1521HTMLDirectoryElement.compact CD:1522HTMLDivElement CD:1522HTMLDivElement.align CD:1523HTMLDListElement CD:1524HTMLDListElement.compact CD:1524HTMLDocument CD:1525HTMLDocument.anchors CD:1526HTMLDocument.applets CD:1527

x x x i x

Trang 40

HTMLDocument.body CD:1528HTMLDocument.close() CD:1528HTMLDocument.cookie CD:1529HTMLDocument.domain CD:1530HTMLDocument.forms CD:1530HTMLDocument.getElementsByName() CD:1531HTMLDocument.images CD:1532HTMLDocument.links CD:1533HTMLDocument.open() CD:1533HTMLDocument.referrer CD:1534HTMLDocument.title CD:1535HTMLDocument.URL CD:1535HTMLDocument.write() CD:1536HTMLDocument.writeln() CD:1537HTMLDOMImplementation CD:1537HTMLDOMImplementation.createHTMLDocument() CD:1538HTMLElement CD:1539HTMLElement.className CD:1540HTMLElement.dir CD:1540HTMLElement.id CD:1541HTMLElement.lang CD:1541HTMLElement.title CD:1542HTMLFieldSetElement CD:1543HTMLFieldSetElement.form CD:1543HTMLFontElement CD:1544HTMLFontElement.color CD:1545HTMLFontElement.face CD:1545HTMLFontElement.size CD:1546HTMLFormElement CD:1546HTMLFormElement.acceptCharset CD:1547HTMLFormElement.action CD:1548HTMLFormElement.elements CD:1549HTMLFormElement.enctype CD:1549HTMLFormElement.length CD:1550HTMLFormElement.method CD:1551HTMLFormElement.name CD:1551HTMLFormElement.reset() CD:1552HTMLFormElement.submit() CD:1553HTMLFormElement.target CD:1553HTMLFrameElement CD:1554HTMLFrameElement.contentDocument CD:1555HTMLFrameElement.frameBorder CD:1555HTMLFrameElement.longDesc CD:1556HTMLFrameElement.marginHeight CD:1557HTMLFrameElement.marginWidth CD:1557

Ngày đăng: 15/03/2014, 13:20

TỪ KHÓA LIÊN QUAN