14 Chapter 3 Writing Your First JavaScript.. 21 Chapter 4 JavaScript Fundamentals.. 75 Chapter 7 Utilizing JavaScript Operators.. 93 Chapter 8 JavaScript by Example—A Review.. 116 Chapte
Trang 3© 2001, Wordware Publishing, Inc.
All Rights Reserved
2320 Los Rios BoulevardPlano, Texas 75074
No part of this book may be reproduced in any form or byany means without permission in writing from
Wordware Publishing, Inc
Printed in the United States of America
Trang 4Contents Summary
Chapter 1 Introduction to JavaScript 1
Chapter 2 HTML Primer 14
Chapter 3 Writing Your First JavaScript 21
Chapter 4 JavaScript Fundamentals 3 4 Chapter 5 Object-Oriented Programming 68
Chapter 6 Functions and Variable Scope 75
Chapter 7 Utilizing JavaScript Operators 93
Chapter 8 JavaScript by Example—A Review 116
Chapter 9 Events in JavaScript 13 2 Chapter 10 Building and Extending Objects 145
Chapter 11 Arrays 159
Chapter 12 Time and Date in JavaScript 192
Chapter 13 JavaScript Math 226
Chapter 14 Handling Strings 259
Chapter 15 Browser Objects 274
Chapter 16 Utilizing the Status Bar 278
Chapter 17 URLs and JavaScript 295
Chapter 18 Using the History List 3 18 Chapter 19 The document Object—Colors, Output, and Properties 3 22 Chapter 20 Forms 3 3 7 Chapter 21 Links, Anchors, and Image Maps 403
Chapter 22 Implementing Cookies 413
Chapter 23 Images and Graphics 444
Chapter 24 Frames 513
Chapter 25 Windows 540
Chapter 26 Evaluation and Compilation 568
Chapter 27 General Software Detection 576
Contents Summary n iii
Trang 5Chapter 29 LiveConnect—Connecting JavaScript, Java, and Plug-ins 593
Chapter 30 JavaScript Extensions for Layers 621
Chapter 31 Style Sheets 63 4 Chapter 32 Security Issues 641
Chapter 33 Debugging Scripts 646
Chapter 34 JavaScript and VRML 655
Chapter 35 JavaScript Tips and Tricks 658
Appendix A HTML-Generated Object Map 667
Appendix B JavaScript Object Specification Syntax 670
Appendix C ASCII Character Set 688
Appendix D Online Resources 692
Index 695
iv n Contents Summary