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. 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. Chapter 4 Using Windows and Frames JavaScript lets you create and manipulate windows and frames for presenting HTML content. Chapter 5 LiveConnect LiveConnect enables communication between JavaScript and Java applets in a page and between JavaScript and plug-ins loaded on a page.