Полезная информация

Table of Contents | Previous | Next | Index


PART 2
Client-Specific Features

Chapter 9   Embedding JavaScript in HTML

You can embed JavaScript in an HTML document as statements and functions within a <SCRIPT> tag, by specifying a file as the JavaScript source, by specifying a JavaScript expression as the value of an HTML attribute, or as event handlers within certain other HTML tags (primarily form elements).

Chapter 10   Handling Events

JavaScript applications in 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.

Chapter 11   Using Navigator Objects

This chapter describes JavaScript objects in Navigator and how to use them. These client-side JavaScript objects are sometimes referred to as Navigator objects, to distinguish them from server-side objects or user-defined objects.

Chapter 12   Using Windows and Frames

JavaScript lets you create and manipulate windows and frames for presenting HTML content. The window object is the top-level object in the JavaScript client hierarchy; Frame objects are similar to window objects, but correspond to "sub-windows" created with the FRAME tag in a FRAMESET document.

Chapter 13   Additional Topics

This chapter describes some special concepts and applications that extend the power and flexibility of JavaScript.

Chapter 14   JavaScript Security

JavaScript 1.0 and later automatically prevents scripts on one server from accessing properties of documents on a different server. This restriction prevents scripts from fetching private information such as directory structures or user session history. This chapter describes the security models of the JavaScript language for JavaScript 1.0 and later releases.

Table of Contents | Previous | Next | Index

Last Updated: 11/06/98 10:47:21

Copyright (c) 1998 Netscape Communications Corporation