This book has been updated to include JavaScript 1.2 features, with the exception of JavaScript properties and objects that support layers and style sheets. For information on these subjects, see Dynamic HTML in Netscape Communicator . This chapter introduces JavaScript, discusses some of the fundamental concepts of JavaScript in Navigator and provides basic examples. It shows JavaScript code in action, so you can begin writing your own scripts immediately, using the example code as a starting point. Using the Validation Functions Debugging JavaScript Chapter 2 Handling Events JavaScript applications in the Navigator are largely event-driven.
Events are actions that occur usually as a result of something the user does.
For example, clicking a button is an event, as is changing a text field or moving the mouse over a link. For your script to react to an event, you define event handlers, such as onChange and onClick. This chapter describes JavaScript objects in Navigator and how to use them. Object history Object navigator Object Navigator's Object Arrays Chapter 4 Using Windows and Frames JavaScript lets you create and manipulate windows and frames for presenting HTML content. LiveConnect LiveConnect enables communication between JavaScript and Java applets in a page and between JavaScript and plug-ins loaded on a page.