The rest of this book is in four parts. Part I, immediately
language. This is the core language common to both
Chapters 2 through 5 begin this section with some bland but
necessary reading--these chapters cover the topics necessary
when learning any new programming language.
- Chapter 2, Lexical Structure,
explains the basic lexical structure of the language.
- Chapter 3, Variables and Data Types,
related topics of literals and identifiers.
- Chapter 4, Expressions and Operators,
Experienced C, C++, or Java
programmers will be able to skim much of this chapter.
- Chapter 5, Statements,
Again, experienced C, C++, and Java programmers will be able to skim
some, but not all, of this chapter.
The next four chapters of this first section become more
language, but document parts of the language that will not already
be familiar to you, even if you already know C or Java. These
chapters must be studied carefully if you want to really
- Chapter 6, Functions,
documents how functions are defined, invoked, and manipulated
- Chapter 7, Objects,
This chapter includes a discussion of creating objects and
defining object methods, among other important topics.
- Chapter 8, Arrays,
covers advanced topics that were not covered elsewhere. You
can skip this chapter the first time through the book, but the
material it contains is important to understand if you are ever
chapters in this part document the web browser objects that are at
browser will rely heavily on features specific to the client-side.
You should read chapters 10, 11, and 12 first. After that, you can
read chapters 13 through 20 in any order you choose, although
you'll probably get the most out of this part if you read them in
the order they are presented.
- Chapter 10, Client-Side Program Structure,
explains the various ways in which
client side. It also discusses the order of execution of
Space, documents the most central and important
covers issues related to this Window object, such as the
name space, variable lifetime, and garbage collection.
- Chapter 12, Programming with Windows,
discusses and illustrates specific programming techniques
using the Window object.
- Chapter 13, The Navigator, Location, and History
Objects, documents the Navigator, Location, and
History objects and shows examples of using them.
- Chapter 14, Documents and Their Contents,
explains the Document object, which is perhaps the second most
important object in client-side programming. It also
illustrates programming techniques that use this object.
- Chapter 15, Saving State with Cookies,
illustrates the use of "cookies" to save state in web
- Chapter 16, Special Effects with Images,
explains the Image object and demonstrates some special
- Chapter 17, Forms and Form Elements,
documents the Form object, another very crucial object in
element objects that appear within HTML forms, and shows
- Chapter 18, Compatibility Techniques,
programming. It discusses compatibility between Navigator and
Internet Explorer, between different versions of Navigator,
not support the language.
classes and objects, and even communicate with and control
Java applets. It also explains how you can do the
provides an overview of
plug security holes in Navigator 2.0, and the new "tainting"
security model that is forthcoming in Navigator 4.0.
Part III is the reference section that makes up the second half of
objects, methods, properties, functions, and event handlers, both
Finally, Part IV is a section of appendices that you
may find useful. They include lists of commonly encountered bugs,
Explorer, and other helpful information.